-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (61 loc) · 1.1 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
60
61
62
63
64
version: '3'
services:
front-end:
container_name: frond-end-js-svelte
build: ./front-end/
command: sh ./start.sh
env_file: .env
networks:
- base
expose:
- "5000"
ports:
- "5000:5000"
volumes:
- web-app:/front-end/public
# For live code reloading
- ./front-end/src/:/front-end/src/
backend:
container_name: backend-go-fiber
build: backend/
command: sh ./start.sh
env_file: .env
expose:
- "4000"
ports:
- "4000:4000"
networks:
- base
depends_on:
- mysql-db
volumes:
- ./backend/:/app
mysql-db:
container_name: db-mysql
restart: always
build: mysql-db-config
ports:
- "3306:3306"
networks:
- base
env_file: .env
volumes:
- ./mysql-db-data:/var/lib/mysql
nginx:
container_name: nginx-reverse-proxy
restart: always
build: nginx
expose:
- "80"
ports:
- "0.0.0.0:80:80"
volumes:
- web-app:/usr/share/nginx/html
links:
- backend
networks:
- base
networks:
base:
volumes:
web-app: