-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
70 lines (67 loc) · 2.58 KB
/
Copy pathcompose.yaml
File metadata and controls
70 lines (67 loc) · 2.58 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
61
62
63
64
65
66
67
68
69
70
services:
postgres:
image: postgis/postgis:18-3.6-alpine
# pull_policy: never
restart: unless-stopped
# build:
# context: https://github.com/postgis/docker-postgis.git?branch=master&subdir=18-3.6/alpine
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-food4studentnext}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql
healthcheck:
test:
- CMD-SHELL
- pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-food4studentnext}
interval: 5s
timeout: 5s
retries: 10
mailpit:
image: axllent/mailpit:v1.27
restart: unless-stopped
ports:
- "${MAILPIT_SMTP_PORT:-1025}:1025"
- "${MAILPIT_UI_PORT:-8025}:8025"
food4studentnext.api:
image: food4studentnext.api
build:
context: .
dockerfile: Dockerfile
ports:
- "${API_PORT:-8080}:8080"
env_file:
- path: .env
required: false
environment:
ASPNETCORE_ENVIRONMENT: ${ASPNETCORE_ENVIRONMENT:-Development}
ASPNETCORE_URLS: ${ASPNETCORE_URLS:-http://+:8080}
ConnectionStrings__Default: >-
Host=postgres;Port=5432;Database=${POSTGRES_DB:-food4studentnext};Username=${POSTGRES_USER:-postgres};Password=${POSTGRES_PASSWORD:-postgres}
Jwt__SigningKey: ${JWT_SIGNING_KEY:-dev-food4studentnext-docker-change-this-sign-key-min-length-256-bits!!}
Jwt__Issuer: ${JWT_ISSUER:-Food4StudentNext}
Jwt__Audience: ${JWT_AUDIENCE:-Food4StudentNextClients}
Jwt__AccessTokenMinutes: ${JWT_ACCESS_TOKEN_MINUTES:-120}
Jwt__RefreshTokenDays: ${JWT_REFRESH_TOKEN_DAYS:-14}
Auth__EmailVerification__CodeExpiryMinutes: ${AUTH_EMAIL_CODE_EXPIRY_MINUTES:-15}
Auth__PasswordReset__CodeExpiryMinutes: ${AUTH_PASSWORD_RESET_CODE_EXPIRY_MINUTES:-15}
Smtp__Host: ${SMTP_HOST:-mailpit}
Smtp__Port: ${SMTP_PORT:-1025}
Smtp__UseSsl: ${SMTP_USE_SSL:-false}
Smtp__UseStartTls: ${SMTP_USE_STARTTLS:-false}
Smtp__Username: ${SMTP_USERNAME:-}
Smtp__Password: ${SMTP_PASSWORD:-}
Smtp__FromAddress: ${SMTP_FROM_ADDRESS:-no-reply@food4student.local}
Smtp__FromDisplayName: ${SMTP_FROM_NAME:-Food4Student}
Authentication__External__Google__Enabled: ${AUTH_EXTERNAL_GOOGLE_ENABLED:-false}
Authentication__External__Google__ValidAudiences__0: ${GOOGLE_CLIENT_ID:-}
depends_on:
postgres:
condition: service_healthy
mailpit:
condition: service_started
volumes:
postgres_data: