-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (44 loc) · 1.09 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
services:
couchbase:
build:
context: ./couchbase
args:
COUCHBASE_ADMINISTRATOR_USERNAME: "Administrator"
COUCHBASE_ADMINISTRATOR_PASSWORD: "password"
COUCHBASE_BUCKET: "default"
COUCHBASE_BUCKET_PASSWORD: ""
container_name: couchbase
environment:
- COUCHBASE_ADMINISTRATOR_USERNAME=Administrator
- COUCHBASE_ADMINISTRATOR_PASSWORD=password
- COUCHBASE_BUCKET=default
- COUCHBASE_BUCKET_PASSWORD=
volumes:
- ~/couchbase/node1:/opt/couchbase/var
ports:
- 8091-8093:8091-8093
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8091/ui/index.html"]
interval: 30s
timeout: 10s
retries: 20
start_period: 120s
networks:
todo-network:
aliases:
- couchbase1 # Add alias here
server:
build: .
container_name: todo-app
environment:
COUCHBASE_HOST: couchbase1
depends_on:
couchbase:
condition: service_healthy
ports:
- 8080:8080
networks:
- todo-network
networks:
todo-network:
driver: bridge