Skip to content

Commit 43989a9

Browse files
committed
clean up docker compose, key ordering and remove deprecated key
1 parent 5e506ee commit 43989a9

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

docker-compose.yml

+6-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
services:
22
bot:
3-
container_name: pythonista-bot
4-
depends_on:
5-
- database
63
image: ghcr.io/pythonistaguild/pythonista-bot:latest
4+
container_name: pythonista-bot
75
restart: unless-stopped
86
volumes:
97
- ./config.toml:/app/config.toml:ro
8+
depends_on:
9+
- database
1010

1111
database:
12+
image: postgres
1213
container_name: pythonista-bot-db
1314
env_file:
1415
- .env
@@ -19,21 +20,16 @@ services:
1920
healthcheck:
2021
interval: 1s
2122
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}"]
2724
timeout: 5s
28-
image: postgres
2925
restart: always
3026
volumes:
3127
- pgdata:/var/lib/postgresql/data
3228
- ./database/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro
3329

3430
snekbox:
35-
container_name: snekbox-eval
3631
image: ghcr.io/python-discord/snekbox
32+
container_name: snekbox-eval
3733
ipc: "none"
3834
ports:
3935
- "127.0.0.1:8060:8060"
@@ -42,6 +38,5 @@ services:
4238
- "snekbox"
4339
restart: always
4440

45-
version: "3"
4641
volumes:
4742
pgdata:

0 commit comments

Comments
 (0)