-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (52 loc) · 1.07 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
version: '3.8'
services:
api:
hostname: api
build: .
env_file:
- .env
auth:
hostname: auth
image: keratin/authn-server:latest
env_file:
- .env
command: sh -c "./authn migrate && ./authn server"
depends_on:
- postgres
- redis
postgres:
hostname: postgres
image: postgres:15
ports:
- "5435:5435"
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
volumes:
- postgres_data:/var/lib/postgresql/data
- ./db/init.sql:/docker-entrypoint-initdb.d/1_todoauth_schema.sql
command:
-p 5435
swagger:
image: swaggerapi/swagger-ui:latest
environment:
SWAGGER_JSON_URL: https://swagger.todoauthn.com/swagger.json
redis:
image: redis:latest
command:
--port 6380
caddy:
image: caddy
volumes:
- ./ui/public:/ui
- ./Caddyfile:/etc/caddy/Caddyfile
- .certs:/etc/caddy/certs
ports:
- "80:80"
- "443:443"
depends_on:
- api
- auth
volumes:
postgres_data: