-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (35 loc) · 1 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
services:
postgres:
image: postgres
restart: always
# set shared memory limit when using docker-compose
ports:
- "5432:5432"
volumes:
- sql_turnos:/var/lib/postgresql/data
# set shared memory limit when using docker-compose
shm_size: 128mb
# or set shared memory limit when deploy via swarm stack
#volumes:
# - type: tmpfs
# target: /dev/shm
# tmpfs:
# size: 134217728 # 128*2^20 bytes = 128Mb
environment:
POSTGRES_PASSWORD: YourStrong@Passw0rd
POSTGRES_USER: sa
POSTGRES_DB: turnos
app:
image: turnosbackend
environment:
- SPRING_DATASOURCE_PASSWORD=YourStrong@Passw0rd
- SPRING_DATASOURCE_USERNAME=sa
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/turnos
- SPRING_DATASOURCE_PASSWORD_EMAIL=ywsj rwgr fcfr cwon
ports:
- "8080:8080"
depends_on:
- postgres
volumes:
sql_turnos: