-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
37 lines (34 loc) · 858 Bytes
/
docker-compose.yaml
File metadata and controls
37 lines (34 loc) · 858 Bytes
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
version: "3.8"
services:
akyuu:
image: akyuu_bot:latest
build:
context: ./
dockerfile: Dockerfile
env_file:
- conf.env
volumes:
- ./:/akyuu/
command: bash -c "alembic upgrade head && python __main__.py"
network_mode: host
depends_on:
database:
condition: service_healthy
database:
image: postgres:14-bullseye
env_file:
- conf.env
expose:
- 5500
ports:
- 5500:5500
volumes:
- postgres_data:/var/lib/postgresql/data/
command: -p 5500
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -p 5500"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data: