-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
101 lines (98 loc) · 2.13 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
version: "3.9"
services:
# Postgres database
db:
extends:
file: common-compose.yml
service: db
# Frontend and backend
website:
image: ghcr.io/alexwaeseperlman/upac_website${IMAGE_SUFFIX}
build:
context: .
dockerfile: ./website/Dockerfile
depends_on:
- db
- sqs
extends:
file: common-compose.yml
service: website
gameplay:
image: ghcr.io/alexwaeseperlman/upac_gameplay${IMAGE_SUFFIX}
build:
context: .
dockerfile: ./workers/gameplay/Dockerfile
privileged: true
depends_on:
- sqs
restart: always
extends:
file: common-compose.yml
service: gameplay
init: true
builder:
image: ghcr.io/alexwaeseperlman/upac_builder${IMAGE_SUFFIX}
build:
context: .
dockerfile: ./workers/builder/Dockerfile
privileged: true
depends_on:
- sqs
restart: always
extends:
file: common-compose.yml
service: builder
init: true
results:
image: ghcr.io/alexwaeseperlman/upac_results${IMAGE_SUFFIX}
build:
context: .
dockerfile: ./workers/results/Dockerfile
depends_on:
- db
- sqs
restart: always
extends:
file: common-compose.yml
service: results
s3:
extends:
file: common-compose.yml
service: s3
createbuckets:
depends_on:
- s3
extends:
file: common-compose.yml
service: createbuckets
sqs:
extends:
file: common-compose.yml
service: sqs
nginx:
extends:
file: common-compose.yml
service: nginx
volumes:
- ./nginx.conf.template:/nginx.conf.template:ro
depends_on:
- sqs
- s3
ports:
- 80:80
- 443:443
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
certbot:
image: certbot/certbot
volumes:
- ./.volumes/certbot/conf:/etc/letsencrypt
- ./.volumes/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 36h & wait $${!}; done;'"
volumes:
database:
external: false
minio:
external: false