-
Notifications
You must be signed in to change notification settings - Fork 225
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 837 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 837 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
38
39
40
41
version: "3.9"
volumes:
pentaract-db-volume:
name: pentaract-db-volume
networks:
pentaract-network:
name: pentaract-network
services:
pentaract:
container_name: pentaract
image: pentaract
build: .
env_file:
- .env
ports:
- ${PORT}:8000
restart: unless-stopped
depends_on:
- db
networks:
- pentaract-network
db:
container_name: pentaract_db
image: postgres:15.0-alpine
environment:
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
restart: unless-stopped
healthcheck:
test: pg_isready --username=${DATABASE_USER} --dbname=${DATABASE_NAME}
interval: 10s
timeout: 5s
retries: 10
volumes:
- pentaract-db-volume:/var/lib/postgresql/data
networks:
- pentaract-network