-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-okteto.yml
60 lines (56 loc) · 1.5 KB
/
docker-compose-okteto.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '3.3'
services:
# App backend service
movieland-backend:
container_name: movieland-backend
build:
context: movieland-backend
dockerfile: Dockerfile
image: movieland-backend
ports:
- "8080:8080"
depends_on:
- movieland-db # This service depends on mysql. Start that first.
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://movieland-db:5432/movieland_db?useLegacyDatetimeCode=false&serverTimezone=Europe/Berlin
SPRING_DATASOURCE_USERNAME: movielandadmin
SPRING_DATASOURCE_PASSWORD: movielandadmin
SPRING_BOOT_ADMIN_CLIENT_URL: http://movieland-spring-admin:8081
TRACING_ENABLED: false
LOKI_ENABLED: false
PORT: 8080
networks:
- backend
# App backend service
movieland-spring-admin:
container_name: movieland-spring-admin
build:
context: movieland-spring-admin
dockerfile: Dockerfile
image: movieland-spring-admin
ports:
- "8081:8081"
environment:
PORT: 8081
networks:
- backend
# Database Service (Postgresql)
movieland-db:
container_name: movieland-db
image: 'postgres:13.1-alpine'
ports:
- "5432:5432"
environment:
- POSTGRES_USER=movielandadmin
- POSTGRES_PASSWORD=movielandadmin
- POSTGRES_DB=movieland_db
volumes:
- db-data:/var/lib/postgresql/data
networks:
- backend
# Volumes
volumes:
db-data:
# Networks to be created to facilitate communication between containers
networks:
backend: