-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (64 loc) · 1.82 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
version: "3.9"
services:
polypress:
build:
context: .
dockerfile: ./.docker/development/Dockerfile
ports:
- "3000:3000"
volumes:
- .:/polypress:cached
- rails_cache:/polypress/tmp/cache
- bundle:/bundle
- node_modules:/polypress/node_modules
- packs:/polypress/public/packs
# env_file:
# - ./.env
environment:
BLIND_INDEX_MASTER_KEY: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
# INTERFACE: "0.0.0.0"
RABBITMQ_HOST: amqp://rabbitmq
RABBITMQ_VHOST: event_source
RABBITMQ_PASSWORD: ${RABBITMQ_PASSWORD:-guest}
RABBITMQ_PORT: ${RABBITMQ_PORT:-5672}
RABBITMQ_URL_EVENT_SOURCE: ${RABBITMQ_URL_EVENT_SOURCE:-amqp://guest:guest@rabbitmq:5672}
RABBITMQ_USERNAME: ${AMQP_USERNAME:-guest}
RAILS_ENV: ${RAILS_ENV:-development}
depends_on:
- mongodb
- rabbitmq
tmpfs:
- /tmp
command: bash -c "rm -rf tmp/pids/server.pid && mkdir -p tmp/pids && bundle exec bundle install && bin/rails server --port 3000 --binding 0.0.0.0"
mongodb:
image: mongo:4.4
volumes:
- mongodb:/data/db
- mongodb:/data/var/log/mongodb/
# - mongodb_config:/data/configdb
ports:
- 27017:27017
rabbitmq:
build: .docker/rabbitmq
hostname: rabbitmq
env_file:
- .docker/rabbitmq/rabbitmq.env
volumes:
- rabbitmq_etc:/etc/rabbitmq/
- rabbitmq_data:/var/lib/rabbitmq/
- rabbitmq_logs:/var/log/rabbitmq/
- ./.docker/rabbitmq/rabbitmq.config:/etc/rabbitmq/rabbitmq.config:ro
- ./.docker/rabbitmq/definitions.json:/etc/rabbitmq/definitions.json:ro
ports:
- 5672:5672
- 15672:15672
volumes:
bundle:
rails_cache:
node_modules:
packs:
mongodb:
# mongodb_config:
rabbitmq_etc:
rabbitmq_data:
rabbitmq_logs: