forked from PythonistaGuild/Pythonista-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 1.02 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
services:
bot:
container_name: pythonista-bot
depends_on:
- database
image: ghcr.io/pythonistaguild/pythonista-bot:latest
restart: unless-stopped
volumes:
- ./config.toml:/app/config.toml:ro
database:
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
image: postgres
restart: always
volumes:
- pgdata:/var/lib/postgresql/data
- ./database/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro
snekbox:
container_name: snekbox-eval
image: ghcr.io/python-discord/snekbox
ipc: "none"
ports:
- "127.0.0.1:8060:8060"
privileged: true
profiles:
- "snekbox"
restart: always
version: "3"
volumes:
pgdata: