-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
63 lines (59 loc) · 1.4 KB
/
docker-compose.yaml
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
60
61
62
63
services:
# to reload nginx in alpine container
# $ nginx -s reload -c /etc/nginx/conf.d/default.conf
nginx:
container_name: company-versioning-www
image: nginx:1.16-alpine
ports:
- '80:80'
- '443:443'
volumes:
- './app/api/public:/var/www/app/public:ro'
- './app/.docker/nginx/default.conf:/etc/nginx/nginx.conf'
depends_on:
- php
php:
container_name: company-versioning-php
depends_on:
- db
build:
context: ./app
target: local
ports:
- '9000:9000'
volumes:
- './app/api:/var/www/app'
- './app/api/var:/var/www/app/var:cached'
db:
container_name: company-versioning-db
image: mariadb:10.11.2
restart: on-failure
command: [ '--default-authentication-plugin=mysql_native_password' ]
volumes:
- 'mariabd_data:/var/lib/mysql'
environment:
MARIADB_ROOT_PASSWORD: root
MARIADB_DATABASE: symfony
MARIADB_USER: app_user
MARIADB_PASSWORD: app_password
ports:
- '3306:3306'
front:
container_name: company-versioning-front
build:
context: ./front
target: dev
depends_on:
- nginx
volumes:
- './front:/app'
- '/app/node_modules'
ports:
- '3000:5173'
environment:
- CHOKIDAR_USEPOLLING=true
- API_BASE_URL=${API_BASE_URL}
stdin_open: true
volumes:
mariabd_data:
driver: local