-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (59 loc) · 1017 Bytes
/
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
rails: &rails
image: shiningray/teapoy2
environment:
RAILS_ENV: production
REDIS_URL: redis://redis
APP_ROOT: /app
PUMA_PORT: 3000
links:
- mysql
- mongodb
- redis
- memcached
working_dir: /app
mysql:
image: mariadb:10.0
environment:
MYSQL_DATABASE: teapoy2
MYSQL_USER: teapoy
MYSQL_PASSWORD: teapoy
MYSQL_ROOT_PASSWORD: dockerimage
volumes:
- /data/mysql:/var/lib/mysql
mongodb:
image: mongo:3.0
volumes:
- /data/mongo:/data/db
redis:
image: redis:3.0
volumes:
- /data/redis:/data
memcached:
image: memcached:1.4
scheduler:
<<: *rails
mailman:
<<: *rails
sidekiq:
<<: *rails
puma:
<<: *rails
expose:
- 3000:3000
command: bundle exec puma -t 8:32 -w 3 -b tcp://0.0.0.0:3000 --preload --daemon
railsdev:
<<: *rails
volumes:
- .:/app
command: bundle exec rails c production
stdin_open: true
tty: true
nginx:
image: nginx
links:
- scheduler
- mailman
- puma
expose:
- 80
- 443