-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.yml
More file actions
37 lines (35 loc) · 790 Bytes
/
Copy pathcompose.yml
File metadata and controls
37 lines (35 loc) · 790 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
services:
pastemate:
container_name: pastemate_app
build:
context: .
dockerfile: pastemate/Dockerfile
command: ["/start.sh"]
tty: true
volumes:
- ./pastemate:/app/pastemate:z
- ./pyproject.toml:/app/pyproject.toml:z
ports:
- "8000:8000"
env_file:
- .env
depends_on:
db:
condition: service_healthy
db:
container_name: pastemate_db
image: postgres:17
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
volumes:
postgres_data: