-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
53 lines (47 loc) · 1.13 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
# Specify the version for docker-compose.yml
version: "3.8"
# add the serivces needed (postgres,go)
services:
postgres:
container_name: postgres
image: postgres:latest
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: mypassword
# Optional: Give a name to the database, otherwise
# use the default value POSTGRES_USER as a database name (user in this case.)
# POSTGRES_DB: testdb
ports:
- "5432:5432"
volumes:
- dbdata:/var/lib/postgresql/data
neo4j:
container_name: neo4j_wishlist
image: neo4j:latest
ports:
- "7474:7474"
- "7687:7687"
volumes:
- dbdata:/var/lib/neo4j/data
couchdb:
container_name: couch_userdb
image: couchdb:latest
environment:
- COUCHDB_USER=couchdb
- COUCHDB_PASSWORD=couchdb
ports:
- '5984:5984'
volumes:
- dbdata:/var/lib/couchdb/data
# go:
# container_name: go
# # build the Dockerfile, alternatively use an image.
# build:
# context: .
# depends_on:
# - "postgres"
# - "neo4j"
# - "couchdb"
volumes:
dbdata:
driver: local