This repository was archived by the owner on Dec 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
97 lines (92 loc) · 2.44 KB
/
docker-compose.yml
File metadata and controls
97 lines (92 loc) · 2.44 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
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
services:
listings-manager:
build:
context: ./apps/listings-manager
dockerfile: Dockerfile
command: uvicorn main:app --host 0.0.0.0 --port 8001
working_dir: /apps/listings-manager/src
restart: unless-stopped
environment:
DATABASE_URL: mongodb://mongodb:27017/
BPTF_TOKEN: ${BPTF_TOKEN}
STEAM_API_KEY: ${STEAM_API_KEY}
WS_MANAGER_URL: http://ws-manager:8002
networks:
- app-network
depends_on:
- mongodb
- ws-manager
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:8001/health"]
interval: 10s
retries: 5
start_period: 10s
timeout: 5s
listings-service:
build:
context: ./apps/listings-service
dockerfile: Dockerfile
ports:
- "8000:8000"
command: uvicorn main:app --host 0.0.0.0 --port 8000
working_dir: /apps/listings-service/src
restart: unless-stopped
environment:
DATABASE_URL: mongodb://mongodb:27017/
WS_MANAGER_URL: http://ws-manager:8002
LISTINGS_MANAGER_URL: http://listings-manager:8001
AUTH_TOKEN: ${AUTH_TOKEN}
STEAM_API_KEY: ${STEAM_API_KEY}
SAVE_USER_DATA: ${SAVE_USER_DATA}
networks:
- app-network
depends_on:
- mongodb
- ws-manager
- listings-manager
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:8000/health"]
interval: 10s
retries: 5
start_period: 10s
timeout: 5s
ws-manager:
build:
context: ./apps/ws-manager
dockerfile: Dockerfile
command: uvicorn main:app --host 0.0.0.0 --port 8002
working_dir: /apps/ws-manager/src
restart: unless-stopped
environment:
DATABASE_URL: mongodb://mongodb:27017/
STEAM_API_KEY: ${STEAM_API_KEY}
SAVE_USER_DATA: ${SAVE_USER_DATA}
networks:
- app-network
depends_on:
- mongodb
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:8002/health"]
interval: 10s
retries: 5
start_period: 10s
timeout: 5s
mongodb:
image: mongodb/mongodb-community-server:5.0-ubuntu2004
container_name: mongodb
networks:
- app-network
restart: unless-stopped
volumes:
- mongodb_data:/data/db
healthcheck:
test: ["CMD", "mongo", "--eval", "db.adminCommand('ping')"]
interval: 10s
retries: 5
start_period: 5s
timeout: 5s
networks:
app-network:
driver: bridge
volumes:
mongodb_data: