-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
46 lines (45 loc) · 1.04 KB
/
compose.yaml
File metadata and controls
46 lines (45 loc) · 1.04 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
services:
tags:
image: vladmarlo/tags_backend:latest
ports:
- 5000:5000
environment:
- POSTGRES_HOST=tags_db
- POSTGRES_PORT=5432
- POSTGRES_USER=postgres
- POSTGRES_DATABASE=tags
- POSTGRES_PASSWORD=postgres
- BIND_PORT=5000
depends_on:
tags_db:
condition: service_healthy
tags_migrate:
condition: service_completed_successfully
tags_migrate:
image: vladmarlo/tags_migrator:latest
restart: no
environment:
- POSTGRES_HOST=tags_db
- POSTGRES_PORT=5432
- POSTGRES_USER=postgres
- POSTGRES_DATABASE=tags
- POSTGRES_PASSWORD=postgres
depends_on:
tags_db:
condition: service_healthy
tags_db:
image: postgres
restart: always
user: postgres
volumes:
- tags-db-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=tags
- POSTGRES_PASSWORD=postgres
healthcheck:
test: [ "CMD", "pg_isready" ]
interval: 1s
timeout: 1s
retries: 15
volumes:
tags-db-data: