-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
48 lines (43 loc) · 1.03 KB
/
docker-compose.yaml
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
version: '3'
services:
flyway:
image: flyway/flyway:9
#container_name: flyway
platform: linux/amd64
volumes:
- "./sql:/app/sql"
environment:
- FLYWAY_CONNECT_RETRIES=60
- FLYWAY_LOCATIONS=filesystem:/app/sql
- FLYWAY_SCHEMAS=${FLYWAY_SCHEMAS}
command: -url=jdbc:postgresql://pgdb/${POSTGRES_DB} -user=${POSTGRES_USER} -password=${POSTGRES_PASSWORD} -connectRetries=60 migrate
depends_on:
- pgdb
networks:
- flynet
pgdb:
image: postgres:11
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
user: root
ports:
- "5432:5432"
networks:
- flynet
pg-admin:
image: dpage/pgadmin4
restart: always
environment:
- "PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL}"
- "PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}"
ports:
- "8080:80"
networks:
- flynet
depends_on:
- pgdb
networks:
flynet: