-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 986 Bytes
/
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
version: '3.9'
services:
redis:
image: 'redis:alpine'
container_name: redis
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD}
command: ['redis-server', '--requirepass', '$REDIS_PASSWORD']
networks:
- scrum-api
ports:
- 6379:6379
restart: always
volumes:
- scrum-poker-redis:/data
redis-commander:
image: rediscommander/redis-commander:latest
depends_on:
- redis
container_name: redis-commander
hostname: redis-commander
restart: always
environment:
REDIS_HOST: 'redis'
REDIS_PORT: ${REDIS_PORT}
REDIS_PASSWORD: ${REDIS_PASSWORD}
HTTP_USER: ${HTTP_USER}
HTTP_PASSWORD: ${HTTP_PASSWORD}
ports:
- '8081:8081'
api:
container_name: scrum-api
build:
context: ./
dockerfile: Dockerfile
networks:
- scrum-api
ports:
- '${PORT}:${PORT}'
env_file:
- .env
networks:
scrum-api: {}
volumes:
scrum-poker-redis: ~