-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
56 lines (51 loc) · 1.17 KB
/
docker-compose.dev.yml
File metadata and controls
56 lines (51 loc) · 1.17 KB
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
version: '3'
services:
db:
image: mariadb:5.5.64
networks:
- backend
environment:
- MYSQL_ROOT_PASSWORD=${DB_PW}
- MYSQL_DATABASE=${DB_NAME}
ports:
- 3307:3306 # remove in prod
volumes:
- ./.mariadb-docker:/var/lib/mysql
front:
build:
context: ./packages/front
dockerfile: Dockerfile.dev
networks:
- default
environment:
- BACK_URL=https://localhost:8081
- CHOKIDAR_USEPOLLING=true
- HOST=0.0.0.0
ports:
- 8080:8080
volumes:
- ./packages/front:/usr/src/front:rw
- ./certs:/usr/src/certs:ro
back:
build:
context: ./packages/back
dockerfile: Dockerfile.dev
networks:
- backend
environment:
- FRONT_URL=https://localhost:8080
- DB_HOST=${DB_HOST}
- DB_USER=${DB_USER}
- DB_PW=${DB_PW}
- DB_NAME=${DB_NAME}
- VIRTUAL_HOST=localhost:8081
- EMAIL_ACCOUNT_USERNAME=${EMAIL_ACCOUNT_USERNAME}
- EMAIL_ACCOUNT_PW=${EMAIL_ACCOUNT_PW}
ports:
- 8081:8081
volumes:
- ./packages/back:/usr/src/back:rw
- ./certs:/usr/src/certs:ro
networks:
default:
backend: