This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
124 lines (118 loc) · 2.37 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: '3'
services:
db:
container_name: psql
restart: always
image: psql
build:
context: ./db
volumes:
- ./db/data/:/var/lib/postgresql/data
- ./db/config.conf:/etc/postgresql.conf
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: bVawU6etXvWwQgsR
POSTGRES_DATABASE: special
expose:
- 5432
ports:
- 5432:5432
graphql:
container_name: graphql
restart: always
image: graphile/postgraphile
depends_on:
- db
environment:
DATABASE_URL: postgres://postgres:bVawU6etXvWwQgsR@db:5432/special # To be moved to environment file
ports:
- 5000:5000
command: ["postgraphile", "--connection", "postgres://postgres:bVawU6etXvWwQgsR@db:5432/special", "--host", "0.0.0.0", "--port", "5000", "--schema", "special"]
links:
- db
redis:
container_name: redis
restart: always
image: redis
ports:
- 6379:6379
volumes:
- ./db/redis/data/:/data
entrypoint: redis-server --appendonly yes
queue:
container_name: queue
restart: always
image: queue
build:
context: ./middleware/queue
depends_on:
- graphql
environment:
DEV: auth:*
GRAPHQL_SERVER: graphql
expose:
- 3000
ports:
- 4000:3000
links:
- graphql
moss:
container_name: moss
restart: always
image: moss
build:
context: ./middleware/moss
depends_on:
- graphql
- redis
environment:
DEV: auth:*
GRAPHQL_SERVER: graphql
REDIS_SERVER: redis
expose:
- 3050
ports:
- 4050:3050
links:
- graphql
- redis
allocate:
container_name: allocate
restart: always
image: allocate
build:
context: ./middleware/allocate
depends_on:
- graphql
- redis
environment:
DEV: auth:*
GRAPHQL_SERVER: graphql
REDIS_SERVER: redis
expose:
- 3051
ports:
- 4051:3051
links:
- graphql
- redis
dashboard:
container_name: dashboard
restart: always
image: server
build:
context: ./frontend
depends_on:
- queue
- moss
- allocate
environment:
VUE_APP_QUEUE_PORT: 4000
VUE_APP_MOSS_PORT: 4050
VUE_APP_ALLOC_PORT: 4051
ports:
- 5678:8080
links:
- queue
- moss
- allocate