-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
52 lines (47 loc) · 1.06 KB
/
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
49
50
51
52
services:
email-server-app:
build:
context: .
container_name: email_server_app
ports:
- "8080:8080"
- "5005:5005"
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/email_server
SPRING_DATASOURCE_USERNAME: admin
SPRING_DATASOURCE_PASSWORD: secret
depends_on:
- postgres
networks:
- app_network
postgres:
image: postgres:latest
container_name: postgres_db
environment:
POSTGRES_DB: email_server
POSTGRES_USER: admin
POSTGRES_PASSWORD: secret
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- app_network
flyway:
image: flyway/flyway
container_name: flyway
environment:
FLYWAY_USER: admin
FLYWAY_PASSWORD: secret
volumes:
- ./sql:/flyway/sql
command: -url=jdbc:postgresql://postgres:5432/email_server -connectRetries=60 migrate -X
depends_on:
- postgres
networks:
- app_network
volumes:
pgdata:
networks:
app_network:
driver: bridge