-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (51 loc) · 990 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
50
51
52
53
54
55
services:
db:
build: ./Db
ports:
- 1433:1433
extra_hosts:
- "host.docker.internal:host-gateway"
server:
container_name: server
build:
context: .
dockerfile: Dockerfile
target: development
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
env_file:
- .env
command: npm run start:debug
ports:
- "${APP_PORT}:${APP_PORT}"
- "9229:9229"
depends_on:
- redis
- db
links:
- db
redis:
container_name: redis
hostname: redis
image: redis:latest
ports:
- "6379:6379"
- "8001:8001"
restart: always
volumes:
- cache:/data
redis-commander:
container_name: redis-commander
hostname: redis-commander
image: rediscommander/redis-commander:latest
restart: always
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- "8088:8081"
depends_on:
- redis
volumes:
cache:
driver: local