-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
executable file
·124 lines (113 loc) · 3.2 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.5'
x-container: &base-container
stdin_open: true
tty: true
restart: always
services:
backup-service:
<<: *base-container
container_name: backup-service
depends_on:
- postgres
build:
context: ./services/backup
dockerfile: Dockerfile
volumes:
- ./backups:/backups
- ./scripts:/scripts
environment:
PGPASSWORD: ${POSTGRES_PASSWORD:-changeme}
AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID}"
AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY}"
AWS_BUCKET_NAME: "${AWS_BUCKET_NAME}"
registration-provider:
<<: *base-container
container_name: registration-provider
volumes:
- ./providers/shared:/shared
depends_on:
- hasura
build:
context: ./providers/registration
dockerfile: Dockerfile
teams-provider:
<<: *base-container
container_name: teams-provider
volumes:
- ./providers/shared:/shared
depends_on:
- hasura
build:
context: ./providers/teams
dockerfile: Dockerfile
environment:
ENDPOINT_PORT: "${ENDPOINT_PORT:?ENDPOINT_PORT}"
mailer-service:
<<: *base-container
container_name: mailer-service
build:
context: ./services/mailer
dockerfile: Dockerfile
environment:
JWT_SECRET: "${JWT_SECRET:?JWT_SECRET}"
authentication-service:
<<: *base-container
container_name: authentication-service
build:
context: ./services/authentication
dockerfile: Dockerfile
environment:
JWT_SECRET: "${JWT_SECRET:?JWT_SECRET}"
caddy:
<<: *base-container
container_name: caddy
image: abiosoft/caddy
environment:
ACME_AGREE: "true"
ports:
- "${ENDPOINT_PORT:-2015}:2015"
volumes:
- ./Caddyfile:/etc/Caddyfile
- ./certs:/root/.caddy
postgres:
<<: *base-container
container_name: postgres
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
hasura:
<<: *base-container
container_name: hasura
image: hasura/graphql-engine:latest.cli-migrations
volumes:
- ./backups:/hasura-migrations
depends_on:
- postgres
- mailer-service
- authentication-service
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-changeme}@postgres:5432/postgres
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_ADMIN_SECRET:?HASURA_ADMIN_SECRET}
HASURA_GRAPHQL_JWT_SECRET: '{"type":"HS512", "key":"${JWT_SECRET:?JWT_SECRET}"}'
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: "anonymous"
pgadmin:
<<: *base-container
container_name: pgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL:-pgadmin4@pgadmin.org}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD:-admin}
SCRIPT_NAME: "/pgadmin"
depends_on:
- postgres
volumes:
- pgadmin:/root/.pgadmin
volumes:
postgres:
pgadmin: