-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
116 lines (105 loc) · 3.15 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
version: '3'
services:
mysql:
#image: mariadb
image: quay.io/osallou/mariadb
environment:
- MYSQL_ROOT_PASSWORD=my
mongo:
#image: mongo
image: quay.io/osallou/mongo
mailhog:
#image: mailhog/mailhog
image: quay.io/osallou/mailhog
ports:
- "8025:8025"
gomail-rabbitmq:
#image: rabbitmq
image: quay.io/osallou/rabbitmq
hostname: gomail-rabbitmq
environment:
- RABBITMQ_DEFAULT_USER=gomail
- RABBITMQ_DEFAULT_PASS=gomail
gomail-redis:
#image: redis
image: quay.io/osallou/redis
gomail-web:
#image: osallou/gomail
image: quay.io/osallou/gomail
environment:
- RABBITMQ_URL=amqp://gomail:gomail@gomail-rabbitmq:5672/%2F
- GOMAIL_HREF=http://gomail-web:6643
- GOMAIL_SECRET=test
- GOMAIL_REDIS_HOST=gomail-redis
- GOMAIL_LISTS=mytestlist
ports:
- "6643:6643"
depends_on:
- gomail-rabbitmq
- gomail-redis
command: gunicorn -c gunicorn_conf.py -b 0.0.0.0:6643 gomail.app:app
gomail-executor:
image: quay.io/osallou/gomail
depends_on:
- gomail-rabbitmq
environment:
- RABBITMQ_URL=amqp://gomail:gomail@gomail-rabbitmq:5672/%2F
- GOMAIL_MAIL_HOST=mailhog
- GOMAIL_MAIL_PORT=1025
- GOMAIL_SECRET=test
command: bash -c "sleep 10 && python3 gomail/executor.py"
openldap:
#image: dinkel/openldap
image: quay.io/osallou/openldap
environment:
- "SLAPD_PASSWORD=my"
- "SLAPD_DOMAIN=my.org"
ports:
- "3890:389"
volumes:
#- ${MYDIR}/openldap/data/etc:/etc/ldap
#- ${MYDIR}/openldap/data/lib:/var/lib/ldap
- ./ldap-data:/etc/ldap/prepopulate:ro
phpldapadmin:
#image: dinkel/phpldapadmin
image: quay.io/osallou/phpldapadmin
ports:
- "8080:80"
environment:
- LDAP_SERVER_HOST=openldap
my-app:
image: osallou/my
ports:
- "3000:3000"
environment:
- NODE_ENV=test
- LDAP_SERVER_HOST=openldap
- MY_ADMIN_USER=admin
- MY_ADMIN_GROUP=admin
- MY_ADMIN_EMAIL=${MY_ADMIN_EMAIL:[email protected]}
- MY_ADMIN_PASSWORD=${MY_ADMIN_PASSWORD:-admin}
volumes:
- ./home_dir:/home
- ./cron:/opt/my/scripts
depends_on:
- mongo
- openldap
- mysql
- gomail-web
entrypoint: node app.js
#my-cron:
# image: osallou/mycron
# build:
# context: .
# dockerfile: Dockerfile-cron
# depends_on:
# - my-app
# environment:
# - NODE_ENV=test
# - GOMNGRURL=http://my:3000
# - SENTRY_DSN=
# volumes:
# - ./home_dir:/home
# - ./cron:/opt/my/scripts