-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
33 lines (33 loc) · 1.13 KB
/
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
version: "3.9"
services:
go-business-opening-hours-application:
container_name: go-business-opening-hours-application
build: ./
restart: on-failure
ports:
- 8080:8080
networks:
- go-business-opening-hours-network
go-business-opening-hours-database:
container_name: go-business-opening-hours-database
image: postgres:14
restart: always
environment:
- POSTGRES_DB=go-business-opening-hours
- POSTGRES_USER=go-business-opening-hours
- POSTGRES_PASSWORD=go-business-opening-hours
ports:
- 5432:5432
networks:
- go-business-opening-hours-network
go-business-opening-hours-database-migrate:
container_name: go-business-opening-hours-database-migrate
image: flyway/flyway:8.5-alpine
restart: on-failure
command: -url=jdbc:postgresql://go-business-opening-hours-database:5432/go-business-opening-hours -schemas=public -user=go-business-opening-hours -password=go-business-opening-hours -connectRetries=60 migrate
volumes:
- ./migration:/flyway/sql
networks:
- go-business-opening-hours-network
networks:
go-business-opening-hours-network: