-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy-staging.yaml
79 lines (79 loc) · 1.49 KB
/
deploy-staging.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3.7'
services:
caddy:
container_name: caddy
image: caddy:2.6.2-alpine
restart: unless-stopped
ports:
- 80:80
env_file:
- ./src/shared/.env
volumes:
- ./src/shared:/shared
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
networks:
- vlan
client:
container_name: client
restart: unless-stopped
build:
context: ./src
dockerfile: ./client/Dockerfile
env_file:
- ./src/shared/.env
volumes:
- ./src/client:/app/vue
- /app/vue/node_modules
depends_on:
- server
networks:
- vlan
game:
container_name: game
restart: unless-stopped
build:
context: ./src
dockerfile: ./game/Dockerfile
env_file:
- ./src/shared/.env
volumes:
- ./src/game:/app/vue
- /app/vue/node_modules
depends_on:
- server
networks:
- vlan
server:
container_name: server
restart: unless-stopped
build:
context: ./src
dockerfile: ./server/Dockerfile
ports:
- 3000:3000
volumes:
- ./src/server:/app/api
- /app/node_modules
networks:
- vlan
env_file:
- ./src/shared/.env
depends_on:
- mongoDB
mongoDB:
container_name: mongoDB
image: mongo:4.4.18
restart: unless-stopped
ports:
- 27017:27017
env_file:
- ./src/shared/.env
volumes:
- ./src/shared:/shared
- mongodb:/data/db
networks:
- vlan
networks:
vlan:
volumes:
mongodb: