-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (29 loc) · 788 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (29 loc) · 788 Bytes
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
version: '3'
services:
aspnetcoreangular2yoexample:
image: aspnetcoreangular2yoexample
build:
context: .
dockerfile: Dockerfile
volumes:
- ${APPDATA}/microsoft/UserSecrets/:/root/.microsoft/usersecrets
# To avoid the System.InvalidOperationException: The antiforgery token could not be decrypted
- ${LOCALAPPDATA}\ASP.NET\DataProtection-Keys:/root/.aspnet/DataProtection-Keys
depends_on:
- db
environment:
- PGUSER=docker
- PGPASSWORD=docker
db:
image: postgres
container_name: pg-db
environment:
- POSTGRES_USER=docker
- POSTGRES_PASSWORD=docker
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 30s
timeout: 30s
retries: 3