forked from FosolSolutions/vic-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
59 lines (56 loc) · 1.02 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
version: "3.5"
services:
database:
restart: on-failure:1
container_name: vic-db
build:
context: api/db
env_file: ./api/db/.env
ports:
- 3306:3306
volumes:
- database:/var/lib/mysql
networks:
- vic-nic
api:
restart: on-failure:1
container_name: vic-api
depends_on:
- database
build:
context: api
env_file: ./api/src/.env
ports:
- 1080:80
- 10443:443
volumes:
- "./api/certs:/root/https"
networks:
- vic-nic
app:
restart: on-failure:1
container_name: vic-app
tty: true
stdin_open: true
depends_on:
- api
build:
context: app
env_file: ./.env
ports:
- 3000:3000
volumes:
- ./app/src:/usr/app/src
- ./app/public:/usr/app/public
- vic-app-node-cache:/usr/app/node_modules
networks:
- vic-nic
networks:
vic-nic:
name: vic-net
driver: bridge
volumes:
vic-app-node-cache:
name: vic-app-node-cache
database:
name: vic-api-db