-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·49 lines (46 loc) · 1.43 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
41
42
43
44
45
46
47
48
49
version: '3.5'
services:
dcsa-surrender:
container_name: dcsa_surrender
build:
.
ports:
- 9090:9090
environment:
- "db_hostname=dcsa-test-db"
- "SPRING_PROFILES_ACTIVE=${SPRING_PROFILES_ACTIVE:-nosecurity}"
- "SPRING_DATASOURCE_PASSWORD=9c072fe8-c59c-11ea-b8d1-7b6577e9f3f5"
- "ROOT_LOG_LEVEL=${ROOT_LOG_LEVEL:-INFO}"
- "DCSA_LOG_LEVEL=${DCSA_LOG_LEVEL:-INFO}"
logging:
options:
max-file: '10'
max-size: 200k
links:
- dcsa-test-db:dcsa-test-db
depends_on:
- dcsa-test-db
dcsa-test-db:
image: postgres:15-alpine
container_name: dcsa_sur_db
environment:
POSTGRES_PASSWORD: "change_this_password"
volumes:
- ./surrender-domain/src/main/init.db:/docker-entrypoint-initdb.d:ro
ports:
- 5432:5432
# Only activated when using the "pgweb" profile
pgweb-test-db:
image: sosedoff/pgweb
container_name: dcsa_sur_pgweb
restart: always
ports:
- "54321:8081"
environment:
- "DATABASE_URL=postgres://dcsa_db_owner:9c072fe8-c59c-11ea-b8d1-7b6577e9f3f5@dcsa-test-db:5432/dcsa_sur?sslmode=disable"
links:
- dcsa-test-db:dcsa-test-db
depends_on:
- dcsa-test-db
profiles:
- pgweb