-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
51 lines (48 loc) · 1.12 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
# Example docker-compose for deployment or staging
version: "3.9"
services:
server:
image: ghcr.io/fyralabs/id-server:latest
restart: unless-stopped
networks:
- main
depends_on:
- postgres
environment:
- DATABASE_OPTIONS=host=postgres port=5432 user=${POSTGRES_USER} dbname=${POSTGRES_DB} password=${POSTGRES_PASSWORD} sslmode=disable
- S3_ACCESS_KEY
- S3_SECRET_KEY
- S3_ENDPOINT
- S3_BUCKET
- S3_AVATAR_URL_PREFIX
- SENDGRID_KEY
- JWT_KEY
- CLIENT_CONNECT_IDS
- TRUSTED_PROXIES
postgres:
image: postgres:latest
restart: unless-stopped
networks:
- main
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
volumes:
- postgres-data:/var/lib/postgresql/data/
cloudflared:
image: cloudflare/cloudflared:latest
restart: unless-stopped
networks:
- main
depends_on:
- server
command: tunnel --no-autoupdate run --token ${CLOUDFLARE_TOKEN}
volumes:
postgres-data:
networks:
main:
ipam:
driver: default
config:
- subnet: ${DOCKER_SUBNET}