From 5d0b0bd255b05c591b4b33c92008c76c27cc429a Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Fri, 11 Dec 2020 10:42:41 +0100 Subject: [PATCH] Fix the account service's context. --- docker-compose.yml | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e7d05314..9e5acf50 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -163,14 +163,14 @@ services: accounts: build: - context: ./ + context: ./docker/accounts dockerfile: ./docker/accounts/Dockerfile container_name: accounts restart: unless-stopped logging: *default-logging environment: - - SKYNET_DB_HOST="mongo" - - SKYNET_DB_PORT="27017" + - SKYNET_DB_HOST=mongo + - SKYNET_DB_PORT=27017 - SKYNET_DB_USER=${SKYNET_DB_USER} - SKYNET_DB_PASS=${SKYNET_DB_PASS} expose: @@ -207,11 +207,7 @@ services: - SQA_OPT_OUT=true volumes: - ./docker/kratos/config:/etc/config/kratos - - - type: volume - source: kratos-sqlite - target: /var/lib/sqlite - read_only: false + - kratos-sqlite:/var/lib/sqlite command: -c /etc/config/kratos/kratos.yml migrate sql -e --yes networks: shared: @@ -236,13 +232,8 @@ services: command: serve -c /etc/config/kratos/kratos.yml volumes: - ./docker/kratos/config:/etc/config/kratos - - - type: volume - source: kratos-sqlite - target: /var/lib/sqlite - read_only: false - - - type: bind + - kratos-sqlite:/var/lib/sqlite + - type: bind source: ./.kratos.yml target: /etc/config/kratos/kratos.yml networks: