Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ddc07e4605 | |||
| 29ca934b93 | |||
| 0dd1717ff6 | |||
| a23fb81570 | |||
| 83af2b1395 |
@@ -4,9 +4,7 @@ An API centric auth server. Uses Sequelize and mariaDB by default.
|
|||||||
|
|
||||||
# Setup
|
# Setup
|
||||||
|
|
||||||
TODO: Dockerize this project
|
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.
|
||||||
|
|
||||||
TODO: Write setup instructions, once dockerized
|
|
||||||
|
|
||||||
# API
|
# API
|
||||||
|
|
||||||
|
|||||||
+4
-3
@@ -54,7 +54,7 @@ const question = (prompt, def = null) => {
|
|||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
${appName}:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
ports:
|
ports:
|
||||||
@@ -98,7 +98,9 @@ services:
|
|||||||
- app-network
|
- app-network
|
||||||
volumes:
|
volumes:
|
||||||
- ./mysql:/var/lib/mysql
|
- ./mysql:/var/lib/mysql
|
||||||
traefik:
|
- ./startup.sql:/docker-entrypoint-initdb.d/startup.sql:ro
|
||||||
|
traefik_${appName}:
|
||||||
|
container_name: ${appName}_traefik
|
||||||
image: "traefik:v2.4"
|
image: "traefik:v2.4"
|
||||||
container_name: "traefik"
|
container_name: "traefik"
|
||||||
command:
|
command:
|
||||||
@@ -116,7 +118,6 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- "./letsencrypt:/letsencrypt"
|
- "./letsencrypt:/letsencrypt"
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||||
- "./startup.sql:/docker-entrypoint-initdb.d/startup.sql:ro"
|
|
||||||
networks:
|
networks:
|
||||||
- app-network
|
- app-network
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Reference in New Issue
Block a user