-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (39 loc) · 978 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (39 loc) · 978 Bytes
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
version: "3.7"
networks:
internal: {}
services:
sut:
build:
context: .
dockerfile: ./Dockerfile.sut
profiles:
- with-sut
depends_on:
db:
condition: service_healthy
ports:
- 8000:8000
networks:
- internal
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/yates?connection_limit=30
- DATABASE_URL_2=postgresql://postgres:postgres@db:5432/yates_2?connection_limit=30
db:
image: postgres:11
volumes:
- ./docker-init:/docker-entrypoint-initdb.d
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_MULTIPLE_DATABASES: yates,yates_2
ports:
- 5432:5432
networks:
- internal
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
# command: ["postgres", "-c", "log_statement=all", "-c", "log_destination=stderr"]