-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.yml
More file actions
60 lines (54 loc) · 1.32 KB
/
dev.yml
File metadata and controls
60 lines (54 loc) · 1.32 KB
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
version: '2'
volumes:
registry: {}
certificates: {}
postgres_data: {}
services:
postgres:
image: postgres:9.4
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=tinyauth
- POSTGRES_PASSWORD=tinyauth
- POSTGRES_DB=tinyauth
tinyauth:
image: tinyauth/tinyauth:dev
depends_on:
- postgres
environment:
- POSTGRES_USER=tinyauth
- POSTGRES_PASSWORD=tinyauth
ports:
- 8000:8000
registry:
image: registry:2
volumes:
- registry:/var/lib/registry
- certificates:/certificates
environment:
- REGISTRY_AUTH=token
- REGISTRY_AUTH_TOKEN_REALM=https://localhost/auth/v2/token
- REGISTRY_AUTH_TOKEN_SERVICE=docker-registry
- REGISTRY_AUTH_TOKEN_ISSUER=tinyauth
- REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE=/certificates/server.pem
- REGISTRY_HTTP_ADDR=0.0.0.0:5000
auth:
build:
context: .
dockerfile: docker/auth/Dockerfile-dev
volumes:
- certificates:/certificates
- .:/app/src
environment:
- TINYAUTH_REGION=eu-west-1
- TINYAUTH_PARTITION=primary
- TINYAUTH_ENDPOINT=http://tinyauth:5000/
- TINYAUTH_ACCESS_KEY_ID=gatekeeper
- TINYAUTH_SECRET_ACCESS_KEY=keymaster
nginx:
build:
context: docker/nginx
ports:
- "443:443"
- "80:80"