From 2bc650fd972f96b70bedec78024bb5d48c7255be Mon Sep 17 00:00:00 2001 From: Clement Michaud Date: Wed, 24 Oct 2018 00:10:23 +0200 Subject: [PATCH] Create a docker-compose.dev.yml to reproduce integration test cases. --- docker-compose.dev.yml | 4 +--- docker-compose.minimal.dev.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 docker-compose.minimal.dev.yml diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 1fad8effd..44e5350c6 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -10,9 +10,7 @@ services: - ./dist/server/src/public_html:/usr/src/server/src/public_html - ./client:/usr/src/client - ./shared:/usr/src/shared - - ./config.minimal.yml:/etc/authelia/config.yml:ro - - /tmp/authelia:/tmp/authelia - - ./users_database.yml:/etc/authelia/users_database.yml + - ./config.template.yml:/etc/authelia/config.yml:ro environment: - NODE_TLS_REJECT_UNAUTHORIZED=0 depends_on: diff --git a/docker-compose.minimal.dev.yml b/docker-compose.minimal.dev.yml new file mode 100644 index 000000000..f36479753 --- /dev/null +++ b/docker-compose.minimal.dev.yml @@ -0,0 +1,27 @@ +version: '2' +services: + authelia: + build: + context: . + dockerfile: Dockerfile.dev + restart: always + volumes: + - ./server:/usr/src/server + - ./dist/server/src/public_html:/usr/src/server/src/public_html + - ./client:/usr/src/client + - ./shared:/usr/src/shared + - ./config.minimal.yml:/etc/authelia/config.yml:ro + - /tmp/authelia:/tmp/authelia + - ./users_database.yml:/etc/authelia/users_database.yml + environment: + - NODE_TLS_REJECT_UNAUTHORIZED=0 + depends_on: + - redis + networks: + - example-network + command: + - "./node_modules/.bin/ts-node" + - "-P" + - "server/tsconfig.json" + - "server/src/index.ts" + - "/etc/authelia/config.yml"