-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (63 loc) · 1.33 KB
/
docker-compose.yml
File metadata and controls
63 lines (63 loc) · 1.33 KB
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
version: '3'
services:
db:
container_name: psql
restart: always
image: psql
build:
context: ./graphql/db
volumes:
- ./graphql/db/data/:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 1234 # To be moved to environment file
POSTGRES_DATABASE: test_db
expose:
- 5432
ports:
- 5432:5432
networks:
- psql-pgql
graphql:
container_name: pgql
restart: always
image: graphile/postgraphile
depends_on:
- db
environment:
DATABASE_URL: $DATABASE_URL
expose:
- 5000
ports:
- 5000:5000
command: ["--connection", $DATABASE_URL, "--host", "0.0.0.0", "--port", "5000", "--schema", "test_schema"]
links:
- db
networks:
- psql-pgql
couchdb:
image: docker.io/bitnami/couchdb:3-debian-10
environment:
- COUCHDB_PASSWORD=couchdb
ports:
- '5984:5984'
- '4369:4369'
- '9100:9100'
volumes:
- ./couchdb/data:/bitnami/couchdb
mysql:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: 'db'
MYSQL_USER: 'user'
MYSQL_PASSWORD: 'password'
MYSQL_ROOT_PASSWORD: 'password'
ports:
- '3306:3306'
expose:
- '3306'
volumes:
- ./mysql/data:/var/lib/mysql
networks:
psql-pgql: