-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (35 loc) · 851 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (35 loc) · 851 Bytes
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
version: '3.3'
services:
app:
build:
context: .
dockerfile: ./Dockerfile
args:
RAILS_ENV: ${RAILS_ENV:-production}
container_name: bm-app
command: bundle exec puma -C config/puma.rb config.ru
volumes:
- ./tmp/:/app/tmp
- ./log/:/app/log
environment:
- TZ=${TZ}
- RAILS_ENV=${RAILS_ENV:-production}
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
- BUCKY_DB_USERNAME=${BUCKY_DB_USERNAME}
- BUCKY_DB_PASSWORD=${BUCKY_DB_PASSWORD}
- BUCKY_DB_HOSTNAME=${BUCKY_DB_HOSTNAME}
- BUCKY_DB_NAME=${BUCKY_DB_NAME}
web:
build:
context: docker/nginx
dockerfile: ./Dockerfile
container_name: bm-web
volumes:
- ./public/:/app/public
- ./tmp/:/app/tmp
environment:
- TZ=${TZ}
ports:
- 80:80
depends_on:
- app