mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 04:21:36 +00:00
Update docker version
Update fig.yml to work Update puma to not daemonize to work Update dockerfile too This version should work now.
This commit is contained in:
parent
3984ad2442
commit
e3275b34ce
3 changed files with 7 additions and 3 deletions
|
@ -34,6 +34,7 @@ RUN bundle install --path /var/bundle --jobs 4
|
|||
|
||||
USER root
|
||||
|
||||
# FIXME: move this to docker image
|
||||
RUN apt-get install -y memcached
|
||||
RUN service memcached start
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ stdout_path = "#{base_path}/lpuma.stdout.log"
|
|||
tag 'ENSL'
|
||||
|
||||
preload_app!
|
||||
daemonize true
|
||||
daemonize false
|
||||
directory base_path
|
||||
pidfile "#{base_path}/tmp/puma.pid"
|
||||
state_path "#{base_path}/tmp/puma.state"
|
||||
|
|
7
fig.yml
7
fig.yml
|
@ -1,11 +1,14 @@
|
|||
web:
|
||||
image: ensl
|
||||
volumes:
|
||||
- "/srv/ensl/public:/var/www/public"
|
||||
ports: "4000:4000"
|
||||
links:
|
||||
- mysql
|
||||
# - redis
|
||||
mysql:
|
||||
image: mysql/mysql-server
|
||||
image: mysql/mysql-server:5.7
|
||||
volumes:
|
||||
- /srv/ensl/mysql:/var/lib/mysql
|
||||
- "/srv/ensl/mysql:/var/lib/mysql"
|
||||
#redis:
|
||||
# image: redis
|
||||
|
|
Loading…
Reference in a new issue