forked from tot-ra/graphql-schema-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (52 loc) · 1.3 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
54
55
version: '3'
services:
gql-schema-registry-db:
image: mysql:8
command: mysqld --default-authentication-plugin=mysql_native_password --skip-mysqlx
environment:
SERVICE_3306_NAME: gql-schema-registry-db
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: schema_registry
ports:
- 6000:3306
volumes:
- gql-schema-registry-db-volume:/var/lib/mysql
healthcheck:
test:
['CMD', 'mysqladmin', 'ping', '-h', 'localhost', '-u', 'healthcheck']
timeout: 5s
retries: 10
networks:
gql-schema:
aliases:
- 'gql-schema-registry-db'
gql-schema-registry:
image: pipedrive/graphql-schema-registry:latest
ports:
- 6001:3000
- 6002:5850
environment:
- WITH_WEBPACK=${WITH_WEBPACK-1}
- DB_SCHEMA_REGISTRY=gql-schema-registry-db
restart: always
depends_on:
- gql-schema-registry-redis
- gql-schema-registry-db
networks:
gql-schema:
aliases:
- 'gql-schema-registry'
gql-schema-registry-redis:
image: redis:6-alpine
ports:
- 6004:6379
environment:
SERVICE_NAME: 'gql-schema-registry-redis'
networks:
gql-schema:
aliases:
- 'gql-schema-registry-redis'
networks:
gql-schema:
volumes:
gql-schema-registry-db-volume: