-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-test.yml
42 lines (42 loc) · 983 Bytes
/
docker-compose-test.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
40
41
42
version: '3'
services:
intel-test:
build:
context: ""
dockerfile: ./Dockerfile.intel-test
image: intel-test:latest
entrypoint:
- /bin/entrypoint.sh
env_file:
- intel-test.env
ports:
- "5678"
environment:
- VIRTUAL_HOST=intel
- VIRTUAL_PORT=5678
- SERVICE_PORT=5678
- PG_HOST=db-test
- PG_PORT=5432
- PG_DBNAME=postgres
- PG_USER=postgres
- PG_PASSWORD=postgres
depends_on:
db-test:
condition: service_healthy
db-test:
restart: always
image: postgres:alpine
ports:
- "5432:5432"
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
- ./var/pgdata/intel-test:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5