forked from riZZZhik/belinsky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
55 lines (44 loc) · 1.25 KB
/
docker-compose.yaml
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
50
51
52
53
54
55
services:
app:
build:
context: app/
target: production
command: gunicorn wsgi:app --config "${BELINSKY_GUNICORN_CONFIG-gunicorn_config.py}"
container_name: belinsky_app
restart: unless-stopped
environment:
BELINSKY_SECRET_KEY: ${BELINSKY_SECRET_KEY}
BELINSKY_GOOGLE_CLOUD_CREDENTIALS: ${BELINSKY_GOOGLE_CLOUD_CREDENTIALS}
BELINSKY_POSTGRES_USER: belinsky
BELINSKY_POSTGRES_PASSWORD: belinsky_db_password
BELINSKY_POSTGRES_HOST: belinsky_database
BELINSKY_POSTGRES_PORT: 5432
BELINSKY_POSTGRES_DB: belinsky_db
GRPC_POLL_STRATEGY: poll
ports:
- "${BELINSKY_PORT-4958}:5000"
depends_on:
database:
condition: service_healthy
database:
image: postgres
container_name: belinsky_database
restart: unless-stopped
environment:
POSTGRES_USER: belinsky
POSTGRES_PASSWORD: belinsky_db_password
POSTGRES_DB: belinsky_db
volumes:
- belinsky_db_volume:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U belinsky -d belinsky_db -q"]
interval: 2s
timeout: 2s
retries: 10
volumes:
belinsky_db_volume:
driver: local
networks:
default:
name: belinsky_network
driver: bridge