Browse Source

#20 change container port to 80 and make xmysql response on any request

pull/21/head
Markus Bergholz 7 years ago
parent
commit
cc474699a5
  1. 2
      docker-entrypoint.sh
  2. 2
      dockerfile

2
docker-entrypoint.sh

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
cd /usr/src/app/ cd /usr/src/app/
node index.js -h $DATABASE_HOST -p $DATABASE_PASSWORD -d $DATABASE_NAME -u $DATABASE_USER node index.js -h $DATABASE_HOST -p $DATABASE_PASSWORD -d $DATABASE_NAME -u $DATABASE_USER -n 80 -r 0.0.0.0

2
dockerfile

@ -24,5 +24,5 @@ ENV DATABASE_USER root
ENV DATABASE_PASSWORD password ENV DATABASE_PASSWORD password
ENV DATABASE_NAME sakila ENV DATABASE_NAME sakila
EXPOSE 3000 EXPOSE 80
ENTRYPOINT ["/docker-entrypoint.sh"] ENTRYPOINT ["/docker-entrypoint.sh"]

Loading…
Cancel
Save