-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (69 loc) · 1.51 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3.8'
name: task-management-system
services:
# api:
# build:
# context: .
# dockerfile: Dockerfile
# ports:
# - "8080:3000"
# environment:
# - NODE_ENV=development
# - PORT=8080
# - COUCHBASE_HOST=couchbase
# - COUCHBASE_USER=Administrator
# - COUCHBASE_PASSWORD=password123
# - REDIS_HOST=redis
# - REDIS_PORT=6379
# depends_on:
# - couchbase
# - redis
# networks:
# - task-network
# restart: unless-stopped
# volumes:
# - .:/app
# - /app/node_modules
couchbase:
image: couchbase:latest
ports:
- "8091-8096:8091-8096"
- "11210-11211:11210-11211"
volumes:
- couchbase_data:/opt/couchbase/var
networks:
- task-network
healthcheck:
test: ["CMD", "/opt/couchbase/bin/couchbase-cli", "server-info", "-c", "localhost:8091"]
interval: 30s
timeout: 10s
retries: 3
redis:
image: redis:alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- task-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
# redis-commander:
# image: ghcr.io/joeferner/redis-commander:latest
# environment:
# - REDIS_HOSTS=local:redis:6379
# ports:
# - "8081:8081"
# networks:
# - task-network
# depends_on:
# - redis
volumes:
couchbase_data:
redis_data:
networks:
task-network:
driver: bridge