-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (64 loc) · 1.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
version: '3'
services:
datastore:
image: busybox
volumes:
# - db_data:/var/lib/mysql
# - db_data:/var/lib/postgresql/data
- bundle_install:/usr/local/bundle
- node_modules:/app/node_modules
# db:
# image: mysql:5.7
# ports:
# - 3306:3306
# volumes:
# - db_data:/var/lib/mysql
# env_file:
# - .env.dev
# stdin_open: true
# tty: true
# db:
# image: postgres:12.2-alpine
# ports:
# - 5432:5432
# volumes:
# - db_data:/var/lib/postgresql/data
# env_file:
# - .env.dev
# stdin_open: true
# tty: true
app:
build:
context: .
dockerfile: ./docker/ruby/Dockerfile.dev
args:
BUNDLER_VERSION: "2.1.4"
# default
RUBY_VERSION: "2.7.1-alpine3.11"
RAILS_VERSION: "6"
# For Refinery
# RUBY_VERSION: "2.6.6-alpine3.11"
# RAILS_VERSION: "5.1.7"
# For Alchemy
# RUBY_VERSION: "2.6.6-alpine3.11"
# RAILS_VERSION: "4.2.11"
# For Spina
# RUBY_VERSION: "2.6.6-alpine3.11"
# RAILS_VERSION: "6"
# command: ash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
ports:
- 3000:3000
# depends_on:
# - db
volumes:
- bundle_install:/usr/local/bundle
- node_modules:/app/node_modules
- ./:/app:cached
env_file:
- .env.dev
stdin_open: true
tty: true
volumes:
# db_data:
bundle_install:
node_modules: