-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (47 loc) · 1.15 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.9'
services:
couchbase:
image: ${COUCHBASE_SERVER_IMAGE:-couchbase/server:community-7.1.1}
volumes:
- cbdata:/cbdata
- ./scripts/couchbase-entrypoint.sh:/entrypoint.sh:ro
ports:
- "8091-8097:8091-8097"
- "18091-18097:18091-18097"
- "11207-11211:11207-11211"
deploy:
resources:
limits:
cpus: "2"
memory: 2G
healthcheck:
test: ["CMD", "curl", "-fsS", "-u", "Administrator:password", "http://localhost:8091/pools/default"]
interval: 10s
timeout: 10s
start_period: 1m30s
retries: 5
redis:
image: redis:6-alpine
ports:
- "6379:6379"
server:
build:
context: .
dockerfile: Dockerfile.server
init: true
ports:
- "8000:8000"
environment:
- DB_CONNECTION_STRING=couchbase://couchbase
- DB_USER=sports-scores
- DB_PASSWORD=password
- DB_BUCKET=sports-scores
- REDIS_CONNECTION_STRING=redis://redis
- NODE_ENV=development
depends_on:
redis:
condition: service_started
# couchbase:
# condition: service_healthy
volumes:
cbdata: