-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·52 lines (46 loc) · 1019 Bytes
/
docker-compose.yml
File metadata and controls
executable file
·52 lines (46 loc) · 1019 Bytes
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
50
51
52
version: '3.7'
services:
postgres:
platform: linux/amd64
image: postgres:12-alpine
expose:
- 5432
ports:
- "5432:5432"
volumes:
- pg-data:/var/lib/postgresql/data
networks:
- gamification-api
env_file:
- build/env/postgres.env
flyway:
platform: linux/amd64
image: repo.int.tsum.com/tsum/core/flyway:latest
command: -url=jdbc:postgresql://postgres:5432/postgres -user=postgres -password=postgres -connectRetries=60 migrate
volumes:
- "./migrations:/flyway/sql"
networks:
- gamification-api
depends_on:
- postgres
gamication-api:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
networks:
- gamification-api
depends_on:
- postgres
- flyway
env_file:
- .env
volumes:
- ./gamification-api:/opt/app
volumes:
pg-data:
name: service-gamification-api-pg-data
networks:
gamification-api:
name: gamification-api_network