-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
51 lines (48 loc) · 1.18 KB
/
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
services:
postgres:
restart: unless-stopped
image: postgres:16-alpine
ports:
- "127.0.0.1:7777:5432"
environment:
POSTGRES_DB: codejam_management
POSTGRES_PASSWORD: codejam_management
POSTGRES_USER: codejam_management
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U codejam_management" ]
interval: 2s
timeout: 1s
retries: 5
code_jam_management:
restart: unless-stopped
image: ghcr.io/python-discord/code-jam-management:latest
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql+asyncpg://codejam_management:codejam_management@postgres:5432/codejam_management
ports:
- 8000:8000
redis:
restart: unless-stopped
image: redis:latest
ports:
- "127.0.0.1:6379:6379"
sir-robin:
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
container_name: sir-robin
init: true
tty: true
depends_on:
- redis
environment:
REDIS_HOST: redis
REDIS_USE_FAKEREDIS: false
CODE_JAM_API: http://code_jam_management:8000
env_file:
- .env
volumes:
- .:/bot