-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathdocker-compose.yml
37 lines (37 loc) · 1.11 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
services:
api:
build:
context: .
dockerfile: ./Api/Dockerfile
depends_on:
db:
condition: service_healthy
environment:
- ASPNETCORE_ENVIRONMENT=Development
- Finbuckle__MultiTenant__Stores__ConfigurationStore__Tenants__0__ConnectionString=Server=db;Port=5432;Database=one;User Id=postgres;Password=password;
- Finbuckle__MultiTenant__Stores__ConfigurationStore__Tenants__1__ConnectionString=Server=db;Port=5432;Database=two;User Id=postgres;Password=password;
- VIRTUAL_HOST=*.example.local
db:
environment:
- POSTGRES_PASSWORD=password
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 1s
timeout: 5s
retries: 10
image: postgres:15
ports:
- "5432:5432"
volumes:
- db:/var/lib/postgresql/data
proxy:
image: nginxproxy/nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./example.local.crt:/etc/nginx/certs/example.local.crt:ro
- ./example.local.key:/etc/nginx/certs/example.local.key:ro
volumes:
db: