-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
52 lines (52 loc) · 1.02 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
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '3'
services:
magazine-microservice:
container_name: magazine-microservice
build:
context: ./magazines-service/
environment:
- REDIS_HOST=redis
ports:
- '3100:3000'
depends_on:
- redis
networks:
- redis-net
book-microservice:
container_name: book-microservice
build:
context: ./books-service/
environment:
- REDIS_HOST=redis
ports:
- '3200:3000'
depends_on:
- redis
networks:
- redis-net
redis:
image: 'redis:latest'
container_name: microservice-redis
restart: always
environment:
- ALLOW_EMPTY_PASSWORD=yes
- 'REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL'
labels:
kompose.service.type: nodeport
command:
- redis-server
- '--bind'
- redis
- '--port'
- '6379'
volumes:
- 'redis_data:/usr/local/etc/redis/redis.conf'
ports:
- '6379:6379'
networks:
- redis-net
networks:
redis-net: null
volumes:
redis_data:
driver: local