-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
105 lines (95 loc) · 2.17 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: '3'
services:
postgres:
restart: on-failure:3
image: postgres:14-alpine
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- db_access
# TODO: have no need to expose due to web console
ports:
- "127.0.0.1:2345:5432"
env_file:
- .env
room_server:
restart: on-failure:3
build: room-server
depends_on:
- postgres
networks:
- internal
- db_access
# Exposes a config reading from env variables sourced below.
env_file:
- .env
volumes:
- ./config/room-server/config.py:/home/server/config.py
- ./config/eula.txt:/home/server/conf/eula.txt
- ./room-assets:/home/server/assets
food_server:
restart: on-failure:3
build: food-server
depends_on:
- postgres
networks:
- internal
- db_access
# Exposes a config reading from env variables sourced below.
env_file:
- .env
volumes:
- ./config/food-server/config.py:/home/server/config.py
- ./config/eula.txt:/home/server/conf/eula.txt
- ./food-assets:/home/server/images
cam_server:
restart: on-failure:3
build: cam-server
depends_on:
- postgres
networks:
- internal
- db_access
env_file:
- .env
volumes:
- ./config/cam-server/config.py:/home/server/config.py
- ./cam-templates:/home/server/templates
# Used for order file storage.
- ./cam-orders:/home/server/orders
digicard:
restart: on-failure:3
build: Digicard
depends_on:
- postgres
- cam_server
networks:
- internal
- db_access
env_file:
- .env
volumes:
- ./config/digicard/config.py:/home/server/config.py
# Used to siphon stashed order file storage.
- ./cam-orders:/home/server/orders
- ./digicards:/home/server/cards
nginx:
restart: on-failure:3
build: nginx/
depends_on:
- room_server
networks:
- internal
ports:
- "127.0.0.1:80:80"
env_file:
- .env
volumes:
- ./room-assets:/assets
- ./Digicard:/digicard
- ./food-assets:/food-assets
networks:
internal:
db_access:
volumes:
pgdata: