forked from CitizenLabDotCo/citizenlab-oss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (76 loc) · 1.7 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
version: "3.8"
services:
postgres:
image: "postgis/postgis:12-3.1"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- "postgres:/var/lib/postgresql/data"
web:
container_name: cl-back-web
depends_on:
- "postgres"
- "mailcatcher"
- "rabbitmq"
# - 'memcached'
build:
context: .
dockerfile: back/Dockerfile.development
ports:
- "4000:4000"
volumes:
- "./back:/cl2_back"
- bundle_path:/bundle
env_file:
- "env_files/back-safe.env"
- "env_files/back-secret.env"
environment:
BUNDLE_PATH: /bundle
tty: true
stdin_open: true
que:
container_name: cl-que
depends_on:
- "postgres"
- "mailcatcher"
- "rabbitmq"
build:
context: .
dockerfile: back/Dockerfile.development
command: bundle exec que
volumes:
- "./back:/cl2_back"
- bundle_path:/bundle
env_file:
- "env_files/back-safe.env"
- "env_files/back-secret.env"
environment:
BUNDLE_PATH: /bundle
tty: true
stdin_open: true
rabbitmq:
container_name: cl-back-rabbit
image: "rabbitmq:3.8-management"
ports:
- "8088:15672"
volumes:
- "./back/rabbitmq_enabled_plugins:/etc/rabbitmq/enabled_plugins"
mailcatcher:
image: "schickling/mailcatcher"
ports:
- "1080:1080"
# Include this and uncomment :mem_cache_store in
# `config/environments/development.rb` if you want to enable caching in
# development
# memcached:
# image: memcached:alpine
# command: memcached -m 64
volumes:
postgres:
bundle_path:
networks:
default:
name: citizenlab