-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (38 loc) · 950 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
40
41
42
version: "2.2"
services:
port_capture_server:
build:
context: ./portCaptureServer
dockerfile: ./Dockerfile
depends_on:
db:
condition: service_healthy
environment:
# CONFIG_FILE_PATH: /go/src/portCaptureServer/config/docker_compose_config.yaml
CONFIG_FILE_PATH: /app/config.yaml
port_capture_server_translation:
build:
context: .
dockerfile: ./portCaptureServerTranslator/Dockerfile
depends_on:
- port_capture_server
ports:
- 8080:8080
environment:
PORT_CAPTURE_SERVER_ADDRESS: "port_capture_server:20000"
db:
image: postgres:13.2
ports:
- 5433:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- portCaptureServerDB:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: password
volumes:
portCaptureServerDB:
external: false