mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-11-14 08:50:44 +00:00
Update Dockerfile
This commit is contained in:
parent
82d1dc7355
commit
d27e72b6e4
2 changed files with 4 additions and 2 deletions
|
@ -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"]
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue