-
Notifications
You must be signed in to change notification settings - Fork 42
/
docker-compose.yml
61 lines (56 loc) · 1.56 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
version: '2'
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- /datadrive/data/nginx/my_proxy.conf:/etc/nginx/conf.d/my_proxy.conf:ro
whoami:
image: jwilder/whoami
container_name: whoami
environment:
- VIRTUAL_HOST=whoami.local
redis:
image: redis:3.2-alpine
command: redis-server --requirepass yourpassword
ports:
- '6379:6379'
volumes:
- '/datadrive/redis:/data'
web:
depends_on:
- 'redis'
image: svtek/smart-emailing
volumes:
- /datadrive/data/db:/var/db
- /datadrive/database.yml:/smart-email-marketing/config/database.yml
- /datadrive/csv-files:/smart-email-marketing/public/upload
environment:
VIRTUAL_HOST: yourdomain.com
SECRET_KEY_BASE: yourSercretKeyBase
SIDEKIQ_USERNAME: sidekiqUsername
SIDEKIQ_PASSWORD: sidekiqPass
REDIS_HOST_URL: redis
REDIS_PASSWORD: yourpassword
TINYMCE_API_KEY: GetAtinymceApiKey
links:
- redis:redis
- sidekiq:sidekiq
sidekiq:
depends_on:
- 'redis'
image: mojilala/smart-emailing
restart: always
command: 'bundle exec sidekiq -C config/sidekiq.yml -e production'
volumes:
- /datadrive/data/db:/var/db
- /datadrive/database.yml:/smart-email-marketing/config/database.yml
- /datadrive/csv-files:/smart-email-marketing/public/upload
environment:
REDIS_HOST_URL: redis
REDIS_PASSWORD: yourpassword
volumes:
redis: