-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.prod.yml
61 lines (59 loc) · 1.23 KB
/
docker-compose.prod.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
services:
app:
build:
context: ./
dockerfile: Dockerfile
container_name: cs2_battle_bot_api_prod
command: sh -c "gunicorn cs2_battle_bot.wsgi:application --bind 0.0.0.0:8000"
# command: sh -c "ls"
expose:
- "8000"
volumes:
- static_volume:/app/staticfiles/
env_file:
- .env.prod
restart: unless-stopped
depends_on:
- db
networks:
- cs2-battle-bot-network
db:
image: postgres:15.1
container_name: cs2_battle_bot_api_db_prod
env_file:
- .env.prod
restart: unless-stopped
ports:
- "5435:5432"
healthcheck:
test: "exit 0"
networks:
- cs2-battle-bot-network
redis:
image: "redis:alpine"
container_name: cs2_battle_bot_api_redis_prod
restart: unless-stopped
env_file:
- .env.prod
expose:
- "6379:6379"
networks:
- cs2-battle-bot-network
healthcheck:
test: "exit 1"
nginx:
container_name: cs2_battle_bot_api_nginx_prod
build: ./nginx
ports:
- 8002:80
volumes:
- static_volume:/app/staticfiles/
depends_on:
- app
networks:
- cs2-battle-bot-network
networks:
cs2-battle-bot-network:
external: true
volumes:
static_volume: