-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathproduction-docker-compose.yml
92 lines (92 loc) · 2.53 KB
/
production-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
# This is the production docker-compose and what powers TrackScape.app. Can also be used to host your own TrackScape instance.
services:
mongo:
image: mongo:5.0.10
restart: always
ports:
- '27017:27017'
environment:
MONGO_INITDB_ROOT_USERNAME: '${MONGO_USERNAME}'
MONGO_INITDB_ROOT_PASSWORD: '${MONGO_PASSWORD}'
MONGO_INITDB_DATABASE: "TrackScapeDB"
volumes:
- trackscape-db:/data/db
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- trackscape-network
shuttle:
image: fatfingers23/trackscape:latest
restart: always
ports:
- '80:8000'
- '8001:8001'
environment:
MONGO_DB_URL: 'mongodb://${MONGO_USERNAME}:${MONGO_PASSWORD}@mongo:27017'
DISCORD_TOKEN: '${DISCORD_TOKEN}'
TRACKSCAPE_API_BASE: '${TRACKSCAPE_API_BASE}'
REDIS_ADDR: '${REDIS_ADDR}'
WOM_API_KEY: '${WOM_API_KEY}'
MANAGEMENT_API_KEY: '${MANAGEMENT_API_KEY}'
depends_on:
- mongo
- redis
networks:
- trackscape-network
command: "cargo shuttle run --release --external --working-directory /app"
extra_hosts:
- "host.docker.internal:host-gateway"
worker:
image: fatfingers23/trackscape-worker:latest
restart: always
environment:
MONGO_DB_URL: 'mongodb://${MONGO_USERNAME}:${MONGO_PASSWORD}@mongo:27017'
DISCORD_TOKEN: '${DISCORD_TOKEN}'
TRACKSCAPE_API_BASE: '${TRACKSCAPE_API_BASE}'
REDIS_ADDR: '${REDIS_ADDR}'
WOM_API_KEY: '${WOM_API_KEY}'
depends_on:
- mongo
- redis
networks:
- trackscape-network
command: ""
extra_hosts:
- "host.docker.internal:host-gateway"
cron-worker:
image: fatfingers23/trackscape-cron-worker:latest
restart: always
environment:
MONGO_DB_URL: 'mongodb://${MONGO_USERNAME}:${MONGO_PASSWORD}@mongo:27017'
TRACKSCAPE_API_BASE: '${TRACKSCAPE_API_BASE}'
REDIS_ADDR: '${REDIS_ADDR}'
WOM_API_KEY: '${WOM_API_KEY}'
depends_on:
- mongo
- redis
networks:
- trackscape-network
command: ""
extra_hosts:
- "host.docker.internal:host-gateway"
redis:
image: 'redis:alpine'
restart: always
ports:
- '${FORWARD_REDIS_PORT:-6379}:6379'
volumes:
- 'trackscape-redis:/data'
networks:
- trackscape-network
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
retries: 3
timeout: 5s
volumes:
trackscape-db:
driver: local
trackscape-redis:
driver: local
networks:
trackscape-network:
driver: bridge