-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (27 loc) · 845 Bytes
/
docker-compose.yml
File metadata and controls
28 lines (27 loc) · 845 Bytes
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.9'
services:
app:
# "`-._,-'"`-._,-'"`-._,-'"`-._,-'"`-._,-'"`-._,-'"`-._,-'"`-._,-'"`-._,-
# An important note about accessing database encryption:
# -----------------------------------------------------------------------
# JASYPT_ENCRYPTOR_PASSWORD: secret-key added to environment to use this function
# "`-._,-'"`-._,-'"`-._,-'"`-._,-'"`-._,-'"`-._,-'"`-._,-'"`-._,-'"`-._,-
#
container_name: springapp-with-db
image: springapp:latest
build: ./
ports:
- "9090:9090"
environment:
# - JASYPT_ENCRYPTOR_PASSWORD: secret-key
depends_on:
- dbpostgresql
dbpostgresql:
container_name: spring-db
image: postgres:latest
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=myapp