-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.36 KB
/
docker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.36 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
services:
cervantes-db:
container_name: cervantes-db
networks:
- cervantes
image: mesq/cervantes-postgres:latest
restart: unless-stopped
environment:
POSTGRES_DB: cervantes
POSTGRES_USER: postgres
POSTGRES_PASSWORD: EnUnLugarDeLaMancha1547
volumes:
- cervantes_postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d cervantes"]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
cervantes-app:
container_name: cervantes-app
networks:
- cervantes
image: mesq/cervantes:latest
depends_on:
cervantes-db:
condition: service_healthy
restart: unless-stopped
ports:
- "443:8081"
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=https://+:443
- ASPNETCORE_HTTPS_PORT=443
- ASPNETCORE_Kestrel__Certificates__Default__Password=CervantesCert
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/cervantes.pfx
volumes:
- ./appsettings.json:/app/appsettings.json
- ./https:/https:ro
networks:
cervantes:
driver: bridge
volumes:
cervantes_postgres: