-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 970 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (45 loc) · 970 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
42
43
44
45
46
47
48
version: '3.8'
services:
db:
image: postgres:15.2-alpine
container_name: 'rent-checklist-postgres'
hostname: db
ports:
- '4444:5432' # to host from container
networks:
- backend
env_file:
- .env
volumes:
- rent-checklist-volume:/var/lib/postgresql/data
restart: always
healthcheck:
test: [ "CMD-SHELL", "pg_isready", "-d", $POSTGRES_DB ]
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
api:
# image: "cr.yandex/${REGISTRY_ID}/rent-checklist-backend"
container_name: 'rent-checklist-api'
hostname: api
ports:
- '${HTTP_PORT}:80'
- '${HTTPS_PORT}:443'
networks:
- backend
depends_on:
db:
condition: service_healthy
build: .
env_file:
- .env
volumes:
- cert-cache:/var/www/.cache
restart: always
networks:
backend:
driver: bridge
volumes:
rent-checklist-volume:
cert-cache: