-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (59 loc) · 1.32 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
services:
backend:
container_name: openshift_backend
hostname: openshift.docker.dev
build:
context: .
dockerfile: docker/backend.dockerfile
volumes:
- ./:/var/www
networks:
- default
- hts-appteam-local-dev
ports:
- "9000:9000"
frontend:
container_name: openshift_frontend
build:
dockerfile: docker/frontend.dockerfile
volumes:
- ./:/var/www
working_dir: /var/www
ports:
- "7050:7050"
networks:
- default
- hts-appteam-local-dev
web:
container_name: openshift_nginx
hostname: openshift.docker.dev
build:
context: ./
dockerfile: docker/nginx.dockerfile
environment:
- VIRTUAL_HOST=openshift.docker.dev
- VIRTUAL_PROTO=https
- VIRTUAL_PORT=443
volumes:
- ./:/var/www
- ./storage/logs/:/var/log/nginx
networks:
- default
- hts-appteam-local-dev
mariadb:
hostname: openshift_mariadb.docker.dev
container_name: openshift_mariadb
image: "mariadb:latest"
ports:
- "8050:3306"
environment:
MYSQL_ROOT_PASSWORD: "secret"
MYSQL_DATABASE: "development"
MYSQL_USER: "development"
MYSQL_PASSWORD: "secret"
networks:
- default
- hts-appteam-local-dev
networks:
hts-appteam-local-dev:
external: true