-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
154 lines (141 loc) · 3.2 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
version: '3'
services:
# nginx:
# container_name: nginx
# restart: always
# build:
# context: .
# dockerfile: ./Dockerfile-nginx
# volumes:
# - static:/static
# ports:
# - "80:80"
# depends_on:
# - frontend
frontend-db:
container_name: frontend-db
restart: always
image: postgres:latest
environment:
POSTGRES_DB: stroamdb
POSTGRES_USER: stroamuser
POSTGRES_PASSWORD: stroam
ports:
- "5432:5432"
frontend-redis:
container_name: frontend-redis
restart: always
image: redis:latest
ports:
- "6379:6379"
# frontend:
# container_name: frontend
# restart: always
# build: ./frontend
# command: bash -c "python manage.py migrate && python3 manage.py runserver 0.0.0.0:8000"
# environment:
# USE_DOCKER: 'yes'
# NOTIFICATION_SERVER_HOST: '127.0.0.1'
# volumes:
# - ./frontend:/code
# - static:/static
# ports:
# - "8000:8000"
# depends_on:
# - frontend-db
# - frontend-redis
# links:
# - catalog
catalog:
container_name: catalog
restart: always
build: ./catalog
environment:
NOTIFICATION_SERVER_HOST: mosquitto
FRONTEND_HOST: frontend
AUTH_HOST: authserver
volumes:
- ./catalog:/app
ports:
- "4000:4000"
authserver:
container_name: authserver
restart: always
build: ./authentication/authserver
volumes:
- ./authentication/authserver:/app
ports:
- "3000:3000"
authclient:
container_name: authclient
restart: always
build: ./authentication/authclient
volumes:
- ./authentication/authclient:/app
ports:
- "4200:80"
payment:
container_name: payment
restart: always
build: ./payment
volumes:
- ./payment:/app
- static:/static
ports:
- "5000:5000"
# cdn:
# container_name: cdn
# restart: always
# build: ./cdn
# volumes:
# - ./cdn/webrtc:/app
# ports:
# - "1935:1935"
#notification - notTheService services
mosquitto:
image: eclipse-mosquitto:1.4.12
container_name: mosquittoserver
restart: always
ports:
- "1884:1884"
volumes:
- ./notification/configurations/mosquitto.conf:/mosquitto/config/mosquitto.conf
tvialmail:
image: tvial/docker-mailserver:release-v6.1.0
hostname: tvialmail
domainname: nottheservice.com
container_name: tvialmailserver
restart: always
ports:
- "587:587"
- "993:993"
volumes:
- maildata:/var/mail
- mailstate:/var/mail-state
- ./config/:/tmp/docker-mailserver/
environment:
- ENABLE_SPAMASSASSIN=1
- ENABLE_CLAMAV=1
- ENABLE_FAIL2BAN=1
- ENABLE_POSTGREY=1
- ONE_DIR=1
- DMS_DEBUG=0
cap_add:
- NET_ADMIN
- SYS_PTRACE
nottheservice:
image: nottheservice
container_name: nottheserviceserver
restart: always
build: ./notification
volumes:
- ./notification/configurations/nottheservice.conf:/usr/src/notification/nottheservice.conf
depends_on:
- mosquitto
- tvialmail
volumes:
maildata:
driver: local
mailstate:
driver: local
static: