-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (39 loc) · 1.21 KB
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (39 loc) · 1.21 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
services:
web:
build:
context: ./src
dockerfile: FlightPrep/Dockerfile
ports:
- "8082:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://+:8080
- ConnectionStrings__DefaultConnection=Host=db;Port=5432;Database=flightprep;Username=${POSTGRES_USER:-fpuser};Password=${POSTGRES_PASSWORD:-fppass}
- APPLICATIONINSIGHTS_CONNECTION_STRING=${APPLICATIONINSIGHTS_CONNECTION_STRING:-}
- SEED_ADMIN_USERNAME=${SEED_ADMIN_USERNAME:-admin@e2etest.local}
- SEED_ADMIN_PASSWORD=${SEED_ADMIN_PASSWORD:-E2eTest_Admin_123!}
volumes:
- dpkeys:/root/.aspnet/DataProtection-Keys
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:16-alpine
environment:
POSTGRES_DB: ${POSTGRES_DB:-flightprep}
POSTGRES_USER: ${POSTGRES_USER:-fpuser}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-fppass}
ports:
- "5433:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U fpuser -d flightprep"]
interval: 5s
timeout: 5s
retries: 10
restart: unless-stopped
volumes:
pgdata:
dpkeys: