forked from eu-digital-green-certificates/dgc-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (37 loc) · 942 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
version: '3'
services:
mysql:
image: mysql/mysql-server:5.7
ports:
- 3306:3306
environment:
- MYSQL_DATABASE=dgc
- MYSQL_ROOT_PASSWORD=admin
- MYSQL_USER=dgc_adm
- MYSQL_PASSWORD=admin
networks:
persistence:
dgc-gateway:
build: .
image: eu-digital-green-certificates/dgc-gateway
volumes:
- ./certs:/ec/prod/app/san/dgc
ports:
- 8080:8080
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=mysql,docker
- SPRING_DATASOURCE_URL=jdbc:mysql://mysql:3306/dgc
- SPRING_DATASOURCE_USERNAME=dgc_adm
- SPRING_DATASOURCE_PASSWORD=admin
- DGC_TRUSTANCHOR_KEYSTOREPATH=/ec/prod/app/san/dgc/ta.jks
- DGC_TRUSTANCHOR_KEYSTOREPASS=dgcg-p4ssw0rd
- DGC_TRUSTANCHOR_CERTIFICATEALIAS=dgcg_trust_anchor
depends_on:
- mysql
networks:
backend:
persistence:
networks:
persistence:
backend: