forked from ruby-china/homeland-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 971 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (43 loc) · 971 Bytes
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
version: '3'
services:
postgresql:
container_name: 'oauth2id_postgresql'
image: postgres:14.9-alpine
ports:
- '5432'
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ./data/postgresql:/var/lib/postgresql/data
app: &app_base
container_name: 'oauth2id_app'
image: ericguo/oauth2id:${IMAGE_VERSION:-main}
env_file:
- app.secret.env
- app.local.env
links:
- postgresql
logging:
options:
max-size: '1g'
max-file: '10'
volumes:
- ./log:/rails/log
- ./tmp:/rails/tmp
ports:
- '7000'
caddy:
image: caddy:2-alpine
container_name: 'oauth2id_caddy'
restart: unless-stopped
env_file:
- app.local.env
ports:
- '80:80'
- '443:443'
volumes:
- ./etc/caddy/Caddyfile:/etc/caddy/Caddyfile
- ./shared/caddy/data:/data
links:
- app
command: caddy run --config /etc/caddy/Caddyfile