-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (52 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
56 lines (52 loc) · 1.12 KB
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
services:
spring-kotlin-bff:
container_name: spring-kotlin-bff
build:
context: .
dockerfile: ./.setup/build/Dockerfile
env_file:
- .env
restart: always
environment:
- SPRING_DEVTOOLS_RESTART_ENABLED=true
ports:
- "${APP_PORT}:${APP_PORT}"
networks:
- spring-kotlin-bff-network
depends_on:
- mongo-database
- redis-cache
volumes:
- .:/usr/src/app
mongo-database:
image: mongo:8.0
container_name: mongo-database
env_file:
- .env
volumes:
- "mongo-database:/data/db:delegated"
ports:
- "27017:27017"
networks:
- spring-kotlin-bff-network
redis-cache:
container_name: redis-cache
image: redis:6.2-alpine
restart: always
env_file:
- .env
command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASSWORD}
ports:
- "6379:6379"
volumes:
- "redis-cache:/data"
networks:
- spring-kotlin-bff-network
networks:
spring-kotlin-bff-network:
external: true
volumes:
mongo-database:
driver: local
redis-cache:
driver: local