-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.1 KB
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
49
services:
postgres:
image: postgres:16-alpine
container_name: tender-hack-postgres
environment:
POSTGRES_DB: tender_hack
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d tender_hack"]
interval: 5s
timeout: 5s
retries: 5
networks:
- tender-hack-network
app:
build:
context: .
dockerfile: Dockerfile
container_name: tender-hack-app
depends_on:
postgres:
condition: service_healthy
environment:
DB_HOST: postgres
DB_PORT: 5432
DB_NAME: tender_hack
DB_USER: postgres
DB_PASSWORD: postgres
SPRING_LIQUIBASE_ENABLED: "true"
YC_ACCESS_KEY_ID: "${YC_ACCESS_KEY_ID}"
YC_SECRET_ACCESS_KEY: "${YC_SECRET_ACCESS_KEY}"
ports:
- "8000:8000"
networks:
- tender-hack-network
restart: unless-stopped
volumes:
postgres_data:
networks:
tender-hack-network:
driver: bridge