-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose.yml
43 lines (43 loc) · 1.52 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
services:
api:
profiles:
- web
- local
image: ghcr.io/crypter-file-transfer/${API_IMAGE_NAME:-crypter_api}:latest
build:
context: .
dockerfile: Crypter.API/Dockerfile
expose:
- "80"
environment:
ASPNETCORE_ENVIRONMENT: ${API_ASPNETCORE_ENVIRONMENT-Production}
ASPNETCORE_URLS: http://0.0.0.0:80
ASPNETCORE_TransferStorageSettings__Location: /mnt/storage
CUSTOMCONNSTR_DefaultConnection: host=${POSTGRES_HOST:-db};database=crypter;user id=crypter_user;pwd=${POSTGRES_USER_PASSWORD:-DEFAULT_PASSWORD};
CUSTOMCONNSTR_HangfireConnection: host=${POSTGRES_HANGFIRE_HOST:-db};database=crypter_hangfire;user id=crypter_hangfire_user;pwd=${POSTGRES_HANGFIRE_USER_PASSWORD:-DEFAULT_PASSWORD};
volumes:
- ${API_STORAGE_PATH}:/mnt/storage
- ${API_SETTINGS_FILE}:/app/appsettings.json
restart: always
web:
profiles:
- web
- local
image: ghcr.io/crypter-file-transfer/${WEB_IMAGE_NAME:-crypter_web}:latest
build:
context: .
dockerfile: Crypter.Web/Dockerfile
ports:
- ${WEB_BIND_PORT-80}:80
- ${WEB_SECURE_BIND_PORT-443}:443
environment:
CRYPTER_API_BASE: http://api:80
CADDY_DOMAIN: ${CADDY_DOMAIN}
CADDY_REDIRECT_TO_WWW: ${CADDY_REDIRECT_TO_WWW}
CADDY_OPTIONS: ${CADDY_OPTIONS}
CADDY_TLS_VOLUME: ${CADDY_TLS_VOLUME}
CADDY_MAX_REQUEST_BODY: ${CADDY_MAX_REQUEST_BODY}
volumes:
- ./Volumes/Caddy/data:/data
- ${CADDY_TLS_VOLUME}:/mnt/tls
restart: always