-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (45 loc) · 1.03 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
42
43
44
45
46
47
48
services:
backoffice:
container_name: droits_backoffice
build:
context: ./backoffice
image: droits-backoffice
ports:
- "5000:5000"
- "5001:5001"
environment:
ASPNETCORE_Kestrel__Certificates__Default__Password: "password"
ASPNETCORE_Kestrel__Certificates__Default__Path: "/https/aspnetapp.pfx"
DB_HOST: 'database'
volumes:
- ~/.aspnet/https:/https:ro
depends_on:
- database
webapp:
container_name: droits_webapp
build:
context: ./webapp
image: droits-webapp
environment:
REDIS_HOST: 'redis'
ports:
- "3000:3000"
depends_on:
- backoffice
- redis
database:
image: postgres:14-alpine
container_name: droits_database
volumes:
- ~/apps/droits_db/pgdata:/var/lib/postgresql/data
environment:
POSTGRES_DB: droits
POSTGRES_USER: service
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
redis:
image: redis:7
container_name: droits_redis
ports:
- "6379:6379"