-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (79 loc) · 1.79 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: '3.8'
services:
admin:
image: '${REGISTRY_ENDPOINT:-saas}/admin:${TAG:-latest}'
hostname: admin
container_name: admin
build:
context: .
dockerfile: ./src/Admin/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- API_HOST=backend
ports:
- '8000:80'
depends_on:
- backend
registration:
image: '${REGISTRY_ENDPOINT:-saas}/registration:${TAG:-latest}'
hostname: registration
container_name: registration
build:
context: .
dockerfile: ./src/Registration/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- API_HOST=backend
ports:
- '8010:80'
depends_on:
- backend
frontend:
image: '${REGISTRY_ENDPOINT:-saas}/frontend:${TAG:-latest}'
hostname: frontend
container_name: frontend
build:
context: .
dockerfile: ./src/Frontend/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- API_HOST=backend
ports:
- '8020:80'
depends_on:
- backend
backend:
image: '${REGISTRY_ENDPOINT:-saas}/backend:${TAG:-latest}'
hostname: backend
container_name: backend
build:
context: .
dockerfile: ./src/Backend/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- DB_HOST=db
- SMTP_HOST=smtp
ports:
- '5000:5000'
- '5001:5001'
depends_on:
- db
- smtp
db:
image: postgres
hostname: db
container_name: db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: saas
PGDATA: /data/postgres
ports:
- '5432:5432'
smtp:
image: mailhog/mailhog
hostname: smtp
container_name: smtp
ports:
- '1025:1025'
- '8025:8025'