-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (45 loc) · 1.29 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
version: '2'
networks:
couchnet:
services:
golang:
build: .
image: mramshaw4docs/golang-couchbase:1.15.4
networks:
couchnet:
depends_on:
- couchbase
ports:
- "80:8100"
volumes:
- ./src/application:/go/src/application
- ./src/recipes:/go/src/recipes
- ./src/test:/go/src/test
- ./src:/go/src/RestfulCouchbase
working_dir: /go/src/RestfulCouchbase
command: bash -c "sleep 20; make"
#command: bash -c "sleep 20; ./restful_couchbase"
links:
- couchbase
environment:
PORT: '8100'
COUCHBASE_USER: halcouch
COUCHBASE_PASS: couchpass
COUCHBASE_DB: recipes
couchbase:
image: couchbase:community-6.6.0
networks:
couchnet:
aliases:
- couchbase-backend
restart: unless-stopped
ports:
- 8091-8094:8091-8094
- 11210:11210
volumes:
- ./scripts/couchbase-setup.sh:/opt/couchbase/couchbase-setup.sh
environment:
COUCHBASE_USER: halcouch
COUCHBASE_DB: recipes
entrypoint: "/bin/bash"
command: ["/opt/couchbase/couchbase-setup.sh"]