generated from MEITREX/template_microservice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (45 loc) · 1.08 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
version: "3"
services:
database-scrum-game:
image: postgres:alpine
restart: always
expose:
- 12032
ports:
- "12032:5432"
volumes:
- scrumgamedata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_DB=scrumgamedatabase
networks:
- "scrum-game-network"
app-scrum-game:
build:
dockerfile: Dockerfile
restart: always
container_name: scrum_game
expose:
- 12001
ports:
- "12001:12001"
depends_on:
- database-scrum-game
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://database-scrum-game:5432/scrumgamedatabase
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: root
# replace accordingly:
GROPIUS_URL: http://gropius-testing-api-public-1:8080
GROPIUS_FRONTEND_URL: http://localhost:4200
GROPIUS_AUTH_PUBLICKEY: <GROPIUS_PUBLIC_KEY>
networks:
- "scrum-game-network"
volumes:
scrumgamedata:
testdata:
networks:
scrum-game-network:
external: true
driver: bridge