-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (36 loc) · 1.31 KB
/
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
#-------------------------------------------------------------------------------
# Docker Environment Composition for a PIDSvc development environment.
#-------------------------------------------------------------------------------
x-postgres-common: &postgres-common
POSTGRES_DB: "${POSTGRES_DB:-pidsvc}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:-pidsvc123}"
POSTGRES_USER: "${POSTGRES_USER:-pidsvc-admin}"
volumes:
dbdata:
services:
# PostgreSQL database for the PIDSvc Database
pidsvc-db:
container_name: pidsvc-db
image: postgres:14-alpine
environment:
<<: [ *postgres-common ]
POSTGRES_DUMP_FILE: "${POSTGRES_DUMP_FILE:-}"
POSTGRES_DUMP_FORMAT: "${POSTGRES_DUMP_FORMAT:-tar}"
volumes:
- dbdata:/var/lib/postgresql/data
- ./docker-init/postgresql/:/docker-entrypoint-initdb.d/
# Run this service in the foreground to launch the PIDSvc
# application in a tomcat servlet container.
pidsvc-tomcat:
build:
context: .
#target: builder
container_name: pidsvc-tomcat
depends_on:
- pidsvc-db
environment:
<<: [ *postgres-common ]
POSTGRES_HOST: 'pidsvc-db'
image: onaci/pidsvc:dev
ports:
- 8080:8080