forked from caraml-dev/mlp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
63 lines (57 loc) · 1.23 KB
/
docker-compose.yaml
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
version: "3"
services:
mlp:
depends_on:
- postgres
- keto
build: .
image: gojecktech/mlp:dev
ports:
- 8080:8080
env_file: .env.development
environment:
- DATABASE_HOST=postgres
postgres:
image: bitnami/postgresql:11.15.0
ports:
- 5432:5432
environment:
- POSTGRESQL_USERNAME=mlp
- POSTGRESQL_PASSWORD=mlp
- POSTGRESQL_DATABASE=mlp
keto:
depends_on:
- keto-db
- keto-db-migrations
image: oryd/keto:v0.4.3-alpha.2
ports:
- 4466:4466
environment:
- DSN=postgres://keto:keto@keto-db:5432/keto?sslmode=disable
command:
- serve
keto-db:
image: bitnami/postgresql:latest
environment:
- POSTGRESQL_USERNAME=keto
- POSTGRESQL_PASSWORD=keto
- POSTGRESQL_DATABASE=keto
keto-db-migrations:
depends_on:
- keto-db
image: oryd/keto:v0.4.3-alpha.2
environment:
- DSN=postgres://keto:keto@keto-db:5432/keto?sslmode=disable
command:
- migrate
- sql
- -e
swagger-ui:
image: swaggerapi/swagger-ui:v3.23.5
ports:
- 5555:8080
volumes:
- ./static:/app:ro
environment:
- LAYOUT=BaseLayout
- SWAGGER_JSON=/app/swagger.yaml