-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
95 lines (95 loc) · 2.47 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
91
92
93
94
95
# This is a sample docker-compose.yml file that constructs
# a Docker environment for Rails development.
version: "3.7"
services:
rails: &rails
build:
context: .
args:
PUBLIC_KEY: "docker.pub"
ports:
- "127.0.0.1:3000:80"
- "127.0.0.1:43447:43447"
volumes:
- "${DORA_HOST_APP_DIR}:/home/dora/rails/"
- "${DORA_HOST_VOL_DIR}/tmp/:/tmp/"
environment: &rails_env
# By omitting the values, the variables are taken
# from the current environment. This requires an
# existing `.env` file (or any other means of
# setting the variables).
APP_NAME:
DORA_HOST_APP_DIR:
DORA_HOST_VOL_DIR:
EMAIL_REPORTS_TO:
GIT_PULL:
PASSENGER_APP_ENV:
RAILS_PRECOMPILE_ASSETS:
RAILS_DB_HOST:
RAILS_DB_NAME:
RAILS_DB_USER:
RAILS_DB_PASS:
RAILS_SMTP_HOST:
RAILS_SMTP_PORT:
RAILS_SMTP_USER:
RAILS_SMTP_PASS:
RAILS_SMTP_FROM:
TIMEZONE:
DORA_USER:
DORA_UID:
DORA_GID:
DORA_WEB_UPGRADER_SECRET:
depends_on:
- db
- redis
dev:
<<: *rails
command: bundle exec rdebug-ide --debug --host 0.0.0.0 --port 1234 -- bin/rails server -p 3000 -b 0.0.0.0
ports:
- "127.0.0.1:1234:1234"
- "127.0.0.1:3000:3000"
- "127.0.0.1:43447:43447"
depends_on:
- adminer
- db
- mailhog
- redis
- selenium
environment:
<<: *rails_env
WEB_CONCURRENCY: 0
RAILS_MAX_THREADS: 1
db:
image: postgres:11
volumes:
- ${DORA_HOST_VOL_DIR}/db:/var/lib/postgresql/data
# uncomment the following to enable verbose logging to STDOUT
# command: ["postgres", "-c", "log_statement=all"]
environment:
POSTGRES_PASSWORD: postgres
adminer:
image: adminer:4.7
ports:
- "127.0.0.1:3001:8080"
depends_on:
- db
redis:
image: redis
selenium:
image: selenium/standalone-firefox:3.141.59-zirconium
environment:
START_XVFB: "false"
volumes:
- /dev/shm:/dev/shm
mailhog:
image: mailhog/mailhog:v1.0.0
ports:
# Expose the UI's port on the host, but do not expose it to the world.
# MailHog's SMTP port 1025 is not listed here because it needs to be
# available on the Docker network only.
- "127.0.0.1:8025:8025"
environment:
MH_STORAGE: maildir
MH_MAILDIR_PATH: /home/mailhog/maildir
volumes:
- ${DORA_HOST_VOL_DIR}/mailhog:/home/mailhog/maildir