-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose.yml
41 lines (38 loc) · 1.13 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
38
39
40
41
version: '3.8'
services:
rediscache:
image: redis
container_name: rediscache
restart: always
ports:
- "6379:6379"
volumes:
- redis_volume:/data
cleanarchitecturedb:
image: postgres
container_name: cleanarchitecturedb
restart : always
ports:
- 5432:5432
environment:
- "POSTGRES_PASSWORD=1283"
volumes:
- postgres_volume:/var/lib/postgresql/data
webapi:
image: webapi
restart: always
build:
context: .
dockerfile: src/Presentation/WebAPI/Dockerfile
ports:
- "5010:80"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "ConnectionStrings:PostgreSqlConnection=User ID=postgres; Password=1283; Server=cleanarchitecturedb; Port=5432;Database=CleanArchitecture;Integrated Security=true;"
- "ConnectionStrings:SeriLogConnection=User ID=postgres; Password=1283; Server=cleanarchitecturedb; Port=5432;Database=CleanArchitecture;Integrated Security=true;"
- "CacheSettings:RedisURL=rediscache"
- "CacheSettings:Port=6379"
- "CacheSettings:PreferRedis=true"
volumes:
redis_volume:
postgres_volume: