Compare commits

...

5 Commits

Author SHA1 Message Date
Kayne Ruse ddc07e4605 Irritating 2021-03-07 14:45:05 +11:00
Kayne Ruse 29ca934b93 Oh, come on 2021-03-07 14:21:12 +11:00
Kayne Ruse 0dd1717ff6 Minor name tweak 2021-03-07 14:14:13 +11:00
Kayne Ruse a23fb81570 Quick config fix 2021-03-07 14:07:48 +11:00
Kayne Ruse 83af2b1395 Tweaked docker-compose 2021-03-07 13:52:51 +11:00
2 changed files with 6 additions and 7 deletions
+1 -3
View File
@@ -4,9 +4,7 @@ An API centric auth server. Uses Sequelize and mariaDB by default.
# Setup
TODO: Dockerize this project
TODO: Write setup instructions, once dockerized
There are multiple ways to run this app - it can run on it's own via `npm start` (for production) or `npm run dev` (for development). it can also run inside docker using `docker-compose up --build` - run `node configure-script.js` to generate docker-compose.yml.
# API
+5 -4
View File
@@ -54,7 +54,7 @@ const question = (prompt, def = null) => {
version: '3'
services:
app:
${appName}:
build:
context: .
ports:
@@ -98,7 +98,9 @@ services:
- app-network
volumes:
- ./mysql:/var/lib/mysql
traefik:
- ./startup.sql:/docker-entrypoint-initdb.d/startup.sql:ro
traefik_${appName}:
container_name: ${appName}_traefik
image: "traefik:v2.4"
container_name: "traefik"
command:
@@ -116,7 +118,6 @@ services:
volumes:
- "./letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./startup.sql:/docker-entrypoint-initdb.d/startup.sql:ro"
networks:
- app-network
networks:
@@ -133,7 +134,7 @@ COPY . /app
EXPOSE ${appPort}
USER node
ENTRYPOINT ["bash", "-c"]
CMD ["sleep 10 && npm start"]
CMD ["sleep 10 && npm start"]
`;
const sqlfile = `