Update Dockerfile

This commit is contained in:
Ari Timonen 2019-10-09 22:04:09 +03:00
parent 82d1dc7355
commit d27e72b6e4
2 changed files with 4 additions and 2 deletions

View file

@ -30,7 +30,8 @@ RUN bundle config github.https true; cd /var/www && bundle install --path /var/b
RUN bundle exec rake assets:precompile RUN bundle exec rake assets:precompile
# This is a temporary solution to fix assets issue # This is a temporary solution to fix assets issue
RUN mv /var/www/public/assets /home/web/assets
USER root USER root
RUN mv /var/www/public/assets /home/web/assets
CMD ["/var/www/script/entry.sh"] CMD ["/var/www/script/entry.sh"]

View file

@ -4,7 +4,7 @@ services:
web: web:
image: ensl/ensl.org:latest image: ensl/ensl.org:latest
volumes: volumes:
- "./public:/var/www/public" - "../public:/var/www/public"
ports: ports:
- "4000:4000" - "4000:4000"
depends_on: depends_on:
@ -13,6 +13,7 @@ services:
# - redis # - redis
db: db:
image: mariadb:latest image: mariadb:latest
command: mysqld
volumes: volumes:
- "./db_data:/var/lib/mysql" - "./db_data:/var/lib/mysql"
- "./ext/mysql.conf.d:/etc/mysql/conf.d" - "./ext/mysql.conf.d:/etc/mysql/conf.d"