-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (44 loc) · 1016 Bytes
/
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
version: '3.1'
services:
db:
platform: linux/x86_64
image: mysql:8
container_name: $CODENAME-mysql
restart: unless-stopped
user: "${UID}:${GID}"
environment:
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
ports:
- $MYSQL_PORT:3306
volumes:
- ./mysql/my.cnf:/etc/my.cnf
- ./mysql/data:/var/lib/mysql
- ./mysql/mysql.log:/var/log/mysql/mysql.log
backend:
build:
context: backend
dockerfile: backend.Dockerfile
image: $CODENAME-backend
container_name: $CODENAME-backend
user: ${UID}:${UID}
entrypoint: ["./wait.sh"]
depends_on:
- db
ports:
- 8000:8000
volumes:
- ./backend:/backend
frontend:
build:
context: frontend
dockerfile: frontend.Dockerfile
image: $CODENAME-frontend
container_name: $CODENAME-frontend
depends_on:
- backend
ports:
- $HTTP_PORT:8080
environment:
- CHOKIDAR_USEPOLLING=true
volumes:
- ./frontend:/frontend