-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (70 loc) · 1.63 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.7"
services:
backend:
image: graphql-example.backend
build:
context: ./
dockerfile: ./dockerfiles/backend/Dockerfile
volumes:
- ./:/app
environment:
MYSQL_DATABASE: mysql2://root:insecurepassword@database/graphql_development
APPOPTICS_SERVICE_KEY: e16ed4d503ff8eb9fc6865837b72449d7eb5c6293ee2eb989b8f8e8113f9a8ad:kiszka
links:
- database
depends_on:
- database
frontend:
image: graphql-example.frontend
build:
context: ./
dockerfile: ./dockerfiles/frontend/Dockerfile
volumes:
- ./:/app
database:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: insecurepassword
MYSQL_DATABASE: graphql_development
volumes:
- mysql_data:/var/lib/mysql
web:
image: nginx
ports:
- "80:80"
links:
- backend
- frontend
depends_on:
- backend
- frontend
volumes:
- ./config/nginx/application.conf:/etc/nginx/conf.d/default.conf
graphiql:
image: npalm/graphiql
environment:
API_URL: http://localhost/api/graph
ports:
- "4000:4000"
redis:
image: redis
worker:
image: graphql-example.backend
restart: on-failure
links:
- redis
command: bundle exec ruby bin/hard_worker_daemon.rb run
volumes:
- ./:/app
environment:
APPOPTICS_SERVICE_KEY: e16ed4d503ff8eb9fc6865837b72449d7eb5c6293ee2eb989b8f8e8113f9a8ad:kiszka
service:
image: graphql-example.backend
command: bundle exec ruby services/worker_grpc_service.rb
volumes:
- ./:/app
links:
- redis
volumes:
mysql_data:
driver: local