forked from voc/voctoweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (61 loc) · 1.44 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:
voctoweb:
build: .
command: dumb-init bundle exec rails s -p 3000 -b '0.0.0.0'
volumes:
- .:/voctoweb
- "./docker/database.yml:/voctoweb/config/database.yml"
- "./docker/settings.yml:/voctoweb/config/settings.yml"
ports:
- "3000:3000"
environment:
- ELASTICSEARCH_URL=elasticsearch
- REDIS_URL=redis://redis:6379/1
depends_on:
- sidekiq
- postgres
- elasticsearch
- redis
- ssh-server
sidekiq:
build: .
command: dumb-init bundle exec sidekiq
volumes:
- ".:/voctoweb"
- "./docker/database.yml:/voctoweb/config/database.yml"
- "./docker/settings.yml:/voctoweb/config/settings.yml"
environment:
- REDIS_URL=redis://redis:6379/1
depends_on:
- postgres
- redis
postgres:
image: postgres:alpine
volumes:
- "./docker/db:/var/lib/postgresql/data:rw"
elasticsearch:
image: elasticsearch:5-alpine
ports:
- "9200:9200"
redis:
image: redis:alpine
ports:
- "6379:6379"
ssh-server:
image: panubo/sshd
volumes:
- ".:/voctoweb"
- "./docker/ssh:/root/.ssh"
ports:
- "2202:22"
nginx:
image: nginx
volumes:
- ./docker/nginx.conf:/etc/nginx/conf.d/default.conf
- ./docker/content:/usr/share/nginx/html:ro
ports:
- "80:80"
command: /bin/bash -c "exec nginx -g 'daemon off;'"
depends_on:
- voctoweb