-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 lines (66 loc) · 1.65 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
# ref..
# https://gist.github.com/satendra02/1b335b06bfc5921df486f26bd98e0e89
# https://www.reddit.com/r/docker/comments/7zjbe4/docker_rails_puma_nginx_postgres/
# https://itnext.io/docker-rails-puma-nginx-postgres-999cd8866b18
version: "3.6"
# volumes:
# postgres_data: {}
services:
web:
build:
context: .
dockerfile: ./docker/app.Dockerfile
args:
- RACK_ENV=development
- RAKE_ENV=development
- RAILS_ENV=development
volumes:
- .:/app
- ~/bundle_cache:/usr/local/bundle/
# depends_on:
# - db
environment:
- RACK_ENV=development
- RAKE_ENV=development
- RAILS_ENV=development
# - RAILS_LOG_TO_STDOUT=1
ports:
- 6035:3000
command: bundle exec rails s -p 3000 -b '0.0.0.0'
#
# command: bash -c "bundle check || bundle install --jobs 40 --retry 5 \
# && bundle exec puma -C config/puma.rb -p 3000 "
#
adminerd:
# 10.4.1.231:6117/
# image: adminer:4.7
# image: dockette/adminer:full
image: dgleba/adminer-sqlite:one
# build: ./adminer-sqlite
restart: always
ports:
- 14123:80
# 8080 for regular adminer, 80 for dockette
volumes:
- ./db/development.sqlite3:/db.sq3
- ./adminer-sqlite:/var/www/html
environment:
- ADMINER_DEFAULT_SERVER=s
- DB_PATH=/db.sq3
- DB_USER=u
- DB_PASS=a
# - ADMINER_PLUGINS='tables-filter'
# db:
# image: postgres
# volumes:
# - postgres_data:/var/lib/postgresql/data
# web:
# build:
# context: .
# dockerfile: ./docker/web.Dockerfile
# depends_on:
# - app
# ports:
# - 6032:80
volumes:
bundle_cache: