forked from mrrobworks/spring-boot-angular-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.ref.yml
28 lines (28 loc) · 986 Bytes
/
docker-compose.ref.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
version: '3'
services:
spring-boot-angular-template:
image: mrrobworks/spring-boot-angular-template:0.2-SNAPSHOT
container_name: spring-boot-angular-template-service
volumes:
- ./wait-for.sh:/tmp/wait-for.sh
command: ["sh", "./wait-for.sh", "db:5432", "-t", "20", "--", "java", "-jar", "-Dspring.profiles.active=ref", "app.jar"]
environment:
GOOGLE_CLIENT_ID: [google-client-id]
GOOGLE_CLIENT_SECRET: [google-client-secret]
GITHUB_CLIENT_ID: [github-client-id]
GITHUB_CLIENT_SECRET: [github-client-secret]
ports:
- "8091:8081"
networks:
- mynetwork
depends_on:
- db
flyway:
command: -url=jdbc:postgresql://db:5432/spring_boot_angular_db_ref -schemas=public -user=postgres_ref -password=changeit_ref -connectRetries=60 migrate
db:
environment:
POSTGRES_USER: postgres_ref
POSTGRES_PASSWORD: changeit_ref
POSTGRES_DB: spring_boot_angular_db_ref
ports:
- "54331:5432"