-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
61 lines (58 loc) · 1.7 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
61 lines (58 loc) · 1.7 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
50
51
52
53
54
55
56
57
58
59
60
61
services:
certificates:
build:
context: .
dockerfile: docker/certificates/Dockerfile
volumes:
- 'certificates:/certs'
restart: "no"
postgres:
build:
context: .
dockerfile: docker/postgres/Dockerfile
depends_on:
certificates:
condition: service_completed_successfully
volumes:
- 'certificates:/certs'
- 'postgres_data:/var/lib/postgresql'
ports:
- '55431:5432'
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
healthcheck:
test:
- CMD-SHELL
- |
sh -c "pg_isready -d '
host=127.0.0.1
sslmode=verify-ca
sslrootcert=/certs/ca.pem
user=28830{POSTGRES_USER}
password=28830{POSTGRES_PASSWORD}
dbname=28830{POSTGRES_DB}
'"
interval: 1s
timeout: 5s
retries: 10
tests:
build:
context: ../..
dockerfile: feather-core/docker/tests/Dockerfile
depends_on:
postgres:
condition: service_healthy
environment:
POSTGRES_HOST: postgres
POSTGRES_PORT: "5432"
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
certificates:
name: feather_core_certificates
postgres_data:
name: feather_core_postgres_data