-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
92 lines (88 loc) · 2.23 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
services:
mysql:
image: percona:latest
restart: always
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
volumes:
- mysql:/var/lib/mysql
- mysql_logs:/var/log/mysql
ulimits:
nofile:
soft: 1048576
hard: 1048576
healthcheck:
test: 'mysqladmin status >/dev/null || exit 1'
interval: 60s
timeout: 10s
tts:
image: ghcr.io/spaceagemp/tts/tts:latest
init: true
restart: always
environment:
AWS_REGION: ${TTS_AWS_REGION}
AWS_ACCESS_KEY_ID: ${TTS_AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${TTS_AWS_SECRET_ACCESS_KEY}
healthcheck:
test: 'curl -s -f "http://$${HOSTNAME}:4001/health" >/dev/null || exit 1'
interval: 60s
timeout: 10s
api:
image: ghcr.io/spaceagemp/space_age_api/api:latest
restart: always
init: true
environment:
DATABASE_URL: ${API_DATABASE_URL}
SECRET_KEY_BASE: ${API_SECRET_KEY_BASE}
SENTRY_DSN_SRCDS: ${API_SENTRY_DSN_SRCDS}
SENTRY_DSN_API: ${API_SENTRY_DSN_API}
MIX_ENV: prod
healthcheck:
test: 'curl -s -f "http://$${HOSTNAME}:4000/v2/health" >/dev/null || exit 1'
interval: 60s
timeout: 10s
nginx:
build: nginx
restart: always
#ports:
# - 80:80
# - 443:443
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
volumes:
- ssl:/etc/letsencrypt
links:
- tts:tts
- api:api
healthcheck:
test: 'curl -s -f --resolve "api.spaceage.mp:443:127.0.0.1" --insecure "https://api.spaceage.mp/v2/health" >/dev/null || exit 1'
interval: 60s
timeout: 10s
gmod:
image: ghcr.io/spaceagemp/starlord/starlord:latest
restart: always
environment:
SPACEAGE_SERVER_TOKEN: ${SPACEAGE_SERVER_TOKEN}
ENABLE_SELF_UPDATE: 'true'
#ports:
# - 27015:27015
# - 27015:27015/udp
volumes:
- server:/home/server
website:
image: ghcr.io/spaceagemp/website/website:latest
restart: always
healthcheck:
test: 'nc -z "$${HOSTNAME}" 443 || exit 1'
interval: 60s
timeout: 10s
volumes:
- website_config:/config
- website_data:/data
volumes:
mysql: {}
mysql_logs: {}
ssl: {}
server: {}
website_config: {}
website_data: {}