-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (34 loc) · 933 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
version: '1.0'
services:
portal:
image: kolchanovv/it-resource_portal
ports:
- 3000:3000
backend:
image: kolchanovv/it-resource_backend
ports:
- 8080:8080
depends_on:
- database
flyway:
image: flyway/flyway:latest
environment:
- FLYWAY_USER=${POSTGRES_USER}
- FLYWAY_PASSWORD=${POSTGRES_PASSWORD}
- FLYWAY_URL=jdbc:postgresql://database:${POSTGRES_PORT}/${POSTGRES_DB}
- FLYWAY_SCHEMAS=flyway,${POSTGRES_SCHEMAS}
- FLYWAY_GROUP=true
command: -locations=filesystem:/flyway/sql -connectRetries=60 migrate
volumes:
- ./backend/src/data-etl/1_tables:/flyway/sql
depends_on:
- database
database:
image: postgres:14
restart: always
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}