File tree 1 file changed +6
-11
lines changed
1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change 1
1
services :
2
2
bot :
3
- container_name : pythonista-bot
4
- depends_on :
5
- - database
6
3
image : ghcr.io/pythonistaguild/pythonista-bot:latest
4
+ container_name : pythonista-bot
7
5
restart : unless-stopped
8
6
volumes :
9
7
- ./config.toml:/app/config.toml:ro
8
+ depends_on :
9
+ - database
10
10
11
11
database :
12
+ image : postgres
12
13
container_name : pythonista-bot-db
13
14
env_file :
14
15
- .env
@@ -19,21 +20,16 @@ services:
19
20
healthcheck :
20
21
interval : 1s
21
22
retries : 10
22
- test :
23
- [
24
- " CMD-SHELL" ,
25
- " pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"
26
- ]
23
+ test : ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
27
24
timeout : 5s
28
- image : postgres
29
25
restart : always
30
26
volumes :
31
27
- pgdata:/var/lib/postgresql/data
32
28
- ./database/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro
33
29
34
30
snekbox :
35
- container_name : snekbox-eval
36
31
image : ghcr.io/python-discord/snekbox
32
+ container_name : snekbox-eval
37
33
ipc : " none"
38
34
ports :
39
35
- " 127.0.0.1:8060:8060"
@@ -42,6 +38,5 @@ services:
42
38
- " snekbox"
43
39
restart : always
44
40
45
- version : " 3"
46
41
volumes :
47
42
pgdata :
You can’t perform that action at this time.
0 commit comments