-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (38 loc) · 959 Bytes
/
docker-compose.yml
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
#version: '3.8'
services:
client-backend:
image: ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG}
ports:
- "3000:3000"
depends_on:
db:
condition: service_healthy
environment:
RAILS_ENV: production
POSTGRES_HOST : db
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
MAGNAT_VERSION: ${MAGNAT_VERSION}
TZ: "Europe/Moscow"
restart: unless-stopped
db:
image: postgres:14.7-alpine
ports:
- "5432:5432"
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
TZ: "Europe/Moscow"
volumes:
- db-data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
volumes:
db-data: