-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
155 lines (152 loc) · 3.66 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
services:
testsmtp:
image: mailhog/mailhog
command: ["-smtp-bind-addr", "0.0.0.0:25"]
user: root
expose:
- 25
- 8025
ports:
- 8025:8025
networks:
main:
ifxmail-db:
image: mariadb
volumes:
- ifxmail-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=ifxmail
- MYSQL_DATABASE=ifxmail
- MYSQL_USER=ifxmail
- MYSQL_PASSWORD=ifxmail
- TZ=America/New_York
command: '--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci'
networks:
main:
ifxmail:
image: ifxmail
volumes:
- ../ifxmail:/app
environment:
- IFXMAIL_USERNAME=ifxmail
- IFXMAIL_PASSWORD=ifxmail
- IFXMAIL_HOSTNAME=ifxmail-db
- IFXMAIL_DATABASE=ifxmail
- IFX_REMOTE_USER=veradmin
- IFXMAIL_SMTP_SERVER=testsmtp:25
- IFXMAIL_LOGLEVEL=INFO
- IFXMAIL_DEBUG=TRUE
- PYTHONUNBUFFERED=1
links:
- ifxmail-db
depends_on:
- ifxmail-db
ports:
- 6969:80
networks:
main:
ifxmail-runner:
image: ifxmail
command: ./wait-for-it.sh -t 60 ifxmail-db:3306 ./manage.py processQueue testsmtp
volumes:
- ../ifxmail:/app
environment:
- IFXMAIL_USERNAME=ifxmail
- IFXMAIL_PASSWORD=ifxmail
- IFXMAIL_HOSTNAME=ifxmail-db
- IFXMAIL_DATABASE=ifxmail
- IFX_REMOTE_USER=veradmin
- IFXMAIL_SMTP_SERVER=testsmtp
- IFXMAIL_LOGLEVEL=INFO
links:
- ifxmail-db
- testsmtp
depends_on:
- ifxmail-db
- testsmtp
networks:
main:
nanites-db:
image: mariadb
volumes:
- nanites-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=nanites
- MYSQL_DATABASE=nanites
- MYSQL_USER=nanites
- MYSQL_PASSWORD=nanites
command: '--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci'
networks:
main:
nanites:
image: nanites
volumes:
- ../nanites:/app
environment:
- NANITES_USERNAME=nanites
- NANITES_PASSWORD=nanites
- NANITES_HOSTNAME=nanites-db
- NANITES_DATABASE=nanites
- IFX_REMOTE_USER=veradmin
- NANITES_DEBUG=TRUE
links:
- nanites-db
depends_on:
- nanites-db
ports:
- 8765:80
networks:
main:
{{project_name}}-db:
image: mariadb
volumes:
- {{project_name}}-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD={{project_name}}
- MYSQL_DATABASE={{project_name}}
- MYSQL_USER={{project_name}}
- MYSQL_PASSWORD={{project_name}}
networks:
main:
{{project_name}}-ui:
image: {{project_name}}-ui
depends_on:
- {{project_name}}-drf
volumes:
- .:/app
ports:
- 8080:8080
networks:
main:
{{project_name}}-drf:
image: {{project_name}}-drf
depends_on:
- {{project_name}}-db
volumes:
- .:/app
links:
- {{project_name}}-db
- testsmtp
ports:
- 8099:80
environment:
- {{project_name|upper}}_IFX_APP_TOKEN=FIXME
- {{project_name|upper}}_USERNAME=root
- {{project_name|upper}}_PASSWORD={{project_name}}
- {{project_name|upper}}_DATABASE={{project_name}}
- {{project_name|upper}}_HOSTNAME={{project_name}}-db
- {{project_name|upper}}_LOGLEVEL=DEBUG
- {{project_name|upper}}_DEBUG=TRUE
- {{project_name|upper}}_DJANGO_KEY=anweijfnvwoejvniejnvfwvijnf
- SMTP_SERVER=testsmtp
- IFX_REMOTE_USER=veradmin
- NANITES_API_BASE=http://nanites/nanites/api
- IFXMAIL_API_BASE=http://ifxmail/ifxmail/api
networks:
main:
volumes:
{{project_name}}-data:
ifxmail-data:
nanites-data:
networks:
main: