-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (47 loc) · 981 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: '3.8'
services:
db:
container_name: db
image: postgres:13.1-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=kotiki
ports:
- '5432:5432'
expose:
- '5432'
kotiki-app:
profiles:
- donotstart
build: ./
container_name: kotiki-app
depends_on:
- flyway
stdin_open: true
tty: true
ports:
- '8080:8080'
flyway:
image: flyway/flyway:latest
command: -locations=filesystem:/flyway/sql -connectRetries=60 migrate
volumes:
- ./src/main/resources/db/migration/:/flyway/sql
depends_on:
- db
environment:
- FLYWAY_USER=postgres
- FLYWAY_PASSWORD=postgres
- FLYWAY_URL=jdbc:postgresql://db:5432/kotiki
- FLYWAY_SCHEMAS=public
redis:
image: redis:7
restart: always
ports:
- '6379:6379'
volumes:
db:
driver: local
redis:
driver: local