-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
119 lines (112 loc) · 3.27 KB
/
Copy pathcompose.dev.yaml
File metadata and controls
119 lines (112 loc) · 3.27 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
networks:
dev-fragforce-org: {}
swag_bridge: {}
services:
db:
image: postgres:18.3
container_name: dev-db
restart: unless-stopped
networks: [dev-fragforce-org]
env_file: ./.env
volumes:
- ./postgres:/var/lib/postgresql
- .:/dump
expose:
- 5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 10
redis:
image: redis
container_name: dev-redis
restart: unless-stopped
command: redis-server --maxmemory 512mb --maxmemory-policy volatile-lru
environment:
TZ: "Etc/UTC"
networks: [dev-fragforce-org]
volumes:
- ./redis/data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 10
migrate:
image: ghcr.io/fragforce/fragforce-dev-web:dev
container_name: dev-migrate
command: [ "uv", "run", "--no-sync", "--no-build", "python", "manage.py", "migrate" ]
networks: [dev-fragforce-org]
env_file: ./.env
depends_on:
db:
condition: service_healthy
restart: "no"
web:
image: ghcr.io/fragforce/fragforce-dev-web:dev
container_name: dev-web
restart: unless-stopped
env_file: ./.env
ports:
- "10.22.195.4:8001:8000"
environment:
TZ: "Etc/UTC"
DJANGO_LOG_LEVEL: "DEBUG"
command: [ "uv", "run", "--no-sync", "--no-build", "gunicorn", "--log-level", "debug", "--bind=0.0.0.0:8000", "--forwarded-allow-ips", "*", "--proxy-allow-from", "*", "fforg.wsgi" ]
depends_on:
migrate:
condition: service_completed_successfully
redis:
condition: service_healthy
db:
condition: service_healthy
networks:
- dev-fragforce-org
- swag_bridge
worker:
image: ghcr.io/fragforce/fragforce-dev-worker:dev
container_name: dev-worker
restart: unless-stopped
env_file: ./.env
environment:
DJANGO_LOG_LEVEL: "DEBUG"
command: [ "uv", "run", "--no-sync", "--no-build", "celery", "-A", "fforg", "worker", "--autoscale=6,2", "-E", "-Q", "alerts,celery" ]
depends_on:
migrate:
condition: service_completed_successfully
redis:
condition: service_healthy
db:
condition: service_healthy
networks: [dev-fragforce-org]
beat:
image: ghcr.io/fragforce/fragforce-dev-beat:dev
container_name: dev-beat
restart: unless-stopped
env_file: ./.env
environment:
DJANGO_LOG_LEVEL: "DEBUG"
command: [ "uv", "run", "--no-sync", "--no-build", "celery", "-A", "fforg", "worker", "--autoscale=1,1", "--beat", "-E", "-Q", "alerts,celery" ]
depends_on:
migrate:
condition: service_completed_successfully
redis:
condition: service_healthy
db:
condition: service_healthy
networks: [dev-fragforce-org]
bot:
image: ghcr.io/fragforce/fragforce-dev-web:dev
container_name: dev-bot
restart: unless-stopped
env_file: ./.env
command: [ "uv", "run", "--no-sync", "--no-build", "python", "manage.py", "run_discord_bot" ]
depends_on:
migrate:
condition: service_completed_successfully
redis:
condition: service_healthy
db:
condition: service_healthy
networks: [dev-fragforce-org]