forked from FatihaBHM/MovieReminderV2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
44 lines (41 loc) · 1.02 KB
/
docker-compose.yaml
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
43
44
version: "3.8"
services:
database:
image: postgres
container_name: movie-database
restart: unless-stopped
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
TZ: "Europe/Paris"
networks:
- movieNetwork
volumes:
- data:/var/lib/postgresql/data
movieReminder:
image: movie-reminder
container_name: movie-reminder
build:
context: .
dockerfile: Dockerfile
ports:
- "${MOVIE_PORT}:8080"
depends_on:
- database
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://database:5432/${POSTGRES_DB}
SPRING_DATASOURCE_USERNAME: ${POSTGRES_USER}
SPRING_DATASOURCE_PASSWORD: ${POSTGRES_PASSWORD}
JWT_SECRET: ${JWT_SECRET}
JWT_EXPIRATION: ${JWT_EXPIRATION}
SHOW_SQL: ${SHOW_SQL}
FORMAT_SHOW_SQL: ${FORMAT_SHOW_SQL}
TZ: "Europe/Paris"
restart: unless-stopped
networks:
- movieNetwork
networks:
movieNetwork:
volumes:
data: