-
Notifications
You must be signed in to change notification settings - Fork 61
/
docker-compose.yml.example
46 lines (40 loc) · 1.03 KB
/
docker-compose.yml.example
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
version: '2'
services:
app:
build: .
restart: unless-stopped
depends_on:
- db
env_file: .env
environment:
RACK_ENV: development
ports:
- "3001:3001"
db:
image: mysql:5.7
env_file: .env
volumes:
- /var/lib/mysql
delayed_jobs_worker:
build: .
restart: unless-stopped
depends_on:
- db
env_file: .env
environment:
RACK_ENV: development
LOAD_CONGRESS: "false"
command: sh -c 'QUEUES=notifications bundle exec rake jobs:work'
# Uncomment the following lines if you'd like the members of congress to be
# updated from the YAML files every 15 minutes. Otherwise you'll have to
# manually update them via `rake phantom-dc:update_git` within the container.
#
#cron:
# build: .
# restart: always
# depends_on:
# - db
# env_file: .env
# volumes:
# - ./docker/cron/update_git:/opt/phantomdc/cron/update_git
# command: bash -c "env | sed 's@^@export @' >/etc/profile.d/env.sh; cp ./cron/* /etc/cron.d; cron -f"