Repository navigation
Expand file tree
/
Copy pathdocker-compose-setup.yml
More file actions
60 lines (59 loc) · 1.54 KB
/
Copy pathdocker-compose-setup.yml
File metadata and controls
60 lines (59 loc) · 1.54 KB
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
services:
redis:
image: docker.io/library/redis:latest
ports:
- 6379:6379
command: redis-server --loglevel warning
# Enable memory overcommit to prevent save/replication failures
# If this doesn't work, run: sudo sysctl vm.overcommit_memory=1
sysctls:
- net.core.somaxconn=511
# Uncomment if you have permission issues with sysctls:
# privileged: true
mongo:
image: docker.io/library/mongo:7.0
volumes:
- ./tmp-test-server-database/:/data/db
ports:
- 27017:27017
command: mongod --quiet --logpath /dev/null
server:
image: docker.io/library/node:24
working_dir: /mnt
volumes:
- ./:/mnt
# Native modules are built for the container, keep them separate from the host node_modules
- node_modules:/mnt/node_modules
command: ./utils/setupDockerComposeContainer.sh
environment:
- STEAM_API_KEY
- STEAM_ID
- MONGO_HOST=mongo
- REDIS_HOST=redis
env_file:
- .env
depends_on:
- redis
- mongo
#network_mode: "host"
ports:
- 21025:21025
- 21026:21026
logs:
image: docker.io/library/node:24
working_dir: /mnt
volumes:
- ./:/mnt
# Native modules are built for the container, keep them separate from the host node_modules
- node_modules:/mnt/node_modules
command: node utils/followLogs.js localhost true
environment:
- STEAM_API_KEY
- STEAM_ID
depends_on:
- server
network_mode: "host"
profiles:
- donotstart
volumes:
node_modules: