-
Notifications
You must be signed in to change notification settings - Fork 1
/
stack.yml
74 lines (68 loc) · 2.03 KB
/
stack.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
version: '3'
services:
hasura:
image: hasura/graphql-engine:latest.cli-migrations-v2
restart: always
depends_on:
- "postgres"
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:@postgres:5432/postgres
HASURA_GRAPHQL_ENABLE_CONSOLE: "false"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_SECRET:-HASURA_SECRET}
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: "anonymous"
volumes:
- ./backend-ng/hasura/migrations:/hasura-migrations
- ./backend-ng/hasura/metadata:/hasura-metadata
postgres:
image: postgres:12-alpine
restart: always
volumes:
- db_data:/var/lib/postgresql/data
minio:
image: minio/minio:RELEASE.2020-04-04T05-39-31Z
volumes:
- minio_data:/data
environment:
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY:-MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:-MINIO_SECRET_KEY}
command: server /data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
create_message:
build:
context: "./backend-ng/api/create-message"
dockerfile: ${DOCKERFILE:-Dockerfile}
restart: always
environment:
HASURA_SECRET: ${HASURA_SECRET:-HASURA_SECRET}
volumes:
- "./backend-ng/api/create-message:/go/src/lambda"
depends_on:
- "hasura"
upload_file:
build:
context: "./backend-ng/api/upload-file"
dockerfile: ${DOCKERFILE:-Dockerfile}
restart: always
environment:
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY:-MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:-MINIO_SECRET_KEY}
MINIO_BUCKET: ${MINIO_BUCKET:-MINIO_BUCKET}
volumes:
- "./backend-ng/api/upload-file:/go/src/lambda"
depends_on:
- "minio"
nginx:
build:
context: "./backend-ng/nginx"
dockerfile: "Dockerfile"
ports:
- "8080:80"
restart: always
volumes:
db_data:
minio_data: