-
Notifications
You must be signed in to change notification settings - Fork 0
/
pegase-docker-compose.yml
41 lines (36 loc) · 1.02 KB
/
pegase-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
39
40
41
version: '3.7'
services:
pegase-back:
image: 'pegase-back:latest'
build:
context: .
container_name: pegase-back
ports:
- "8080:8080"
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://pegase_db:5432/pegase_local_db
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: postgres
SPRING_JPA_HIBERNATE_DDL_AUTO: update
SPRING_PROFILES_ACTIVE: localhost
networks:
- network_pegase
pegase_db:
hostname: postgres_pegase
image: postgres:13.1
container_name: pegase_db
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
APP_DB_NAME: ${APP_DB_NAME:-pegase_local_db}
APP_DB_USER: ${APP_DB_USER:-postgres}
POSTGRES_SCHEMA: ${APP_SCHEMA_NAME:-pegase_local_db_schema}
volumes:
- ./create-db.sh:/docker-entrypoint-initdb.d/create-db.sh
ports:
- "5434:5432"
networks:
- network_pegase
networks:
network_pegase:
driver: bridge