-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (39 loc) · 1.01 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
34
35
36
37
38
39
40
41
42
version: '2'
services:
front:
image: 'auxxxxx/onboarding_service_vue:202403151911'
ports:
- "5173:5173"
container_name: vuefront
depends_on:
- app
restart: always
app:
image: 'auxxxxx/onboarding_service:202403191319'
build:
context: ./spring-boot-backend
ports:
- "8080:8080"
container_name: springapi
depends_on:
- db
environment:
- SERVER_PORT=8080
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/OnboardingService
- SPRING_DATASOURCE_USERNAME=compose-postgres
- SPRING_DATASOURCE_PASSWORD=compose-postgres
- SPRING_JPA_HIBERNATE_DDL_AUTO=create
- SPRINGDOC_SWAGGERUI_VERSION=4.1.3
restart: always
db:
image: 'postgres:13.1-alpine'
volumes:
- ./postgres-data:/var/lib/postgresql
container_name: db
ports:
- "5432:5432"
environment:
- POSTGRES_USER=compose-postgres
- POSTGRES_PASSWORD=compose-postgres
- POSTGRES_DB=OnboardingService
restart: always