-
Notifications
You must be signed in to change notification settings - Fork 56
/
docker-compose.yml
90 lines (90 loc) · 2.42 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
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
- DEV_DOMAIN=${DEV_DOMAIN}
depends_on:
- sidekiq
- postgres
- elasticsearch
- redis
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:12-alpine
volumes:
- "./docker/db:/var/lib/postgresql/data"
environment:
- POSTGRES_PASSWORD=postgres
# added to use postgres from host system to run tests, needs a user to match config/database.yml:
# echo "create role voctoweb2 with createdb superuser login password 'voctoweb';" | sudo -u postgres psql -hlocalhos
ports:
- "5432:5432"
elasticsearch:
image: elasticsearch:6.8.6
ports:
- "9200:9200"
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- http.cors.enabled=true
- http.cors.allow-origin=*
ulimits:
memlock:
soft: -1
hard: -1
volumes:
# - esdata:/usr/share/elasticsearch/data
- ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
# kibana:
# image: 'docker.elastic.co/kibana/kibana:6.8.6'
# container_name: kibana
# environment:
# SERVER_NAME: kibana.local
# ELASTICSEARCH_URL: http://elasticsearch:9200
# ports:
# - '5601:5601'
# depends_on:
# - elasticsearch
redis:
image: redis:6-alpine
ports:
- "6379:6379"
ssh-server:
image: panubo/sshd
volumes:
- ".:/voctoweb"
- "./docker/ssh:/root/.ssh"
ports:
- "2202:22"
nginx:
image: nginx:stable-alpine
volumes:
- "./docker/nginx.conf:/etc/nginx/conf.d/default.conf"
- "./docker/content:/usr/share/nginx/html:ro"
environment:
- NGINX_HOST=${DEV_DOMAIN}
ports:
- "80:80"
depends_on:
- voctoweb