-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 995 Bytes
/
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
services:
bot:
image: ghcr.io/pythonistaguild/pythonista-bot:latest
container_name: pythonista-bot
restart: unless-stopped
volumes:
- ./config.toml:/app/config.toml:ro
depends_on:
- database
database:
image: postgres
container_name: pythonista-bot-db
env_file:
- .env
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
healthcheck:
interval: 1s
retries: 10
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
timeout: 5s
restart: always
volumes:
- pgdata:/var/lib/postgresql/data
- ./database/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro
snekbox:
image: ghcr.io/python-discord/snekbox
container_name: snekbox-eval
ipc: "none"
ports:
- "127.0.0.1:8060:8060"
privileged: true
profiles:
- "snekbox"
restart: always
volumes:
pgdata: