Fix the account service's context.

This commit is contained in:
Ivaylo Novakov 2020-12-11 10:42:41 +01:00
parent 2673c351ba
commit 5d0b0bd255
No known key found for this signature in database
GPG Key ID: 06B9354AB08BE9C6
1 changed files with 6 additions and 15 deletions

View File

@ -163,14 +163,14 @@ services:
accounts: accounts:
build: build:
context: ./ context: ./docker/accounts
dockerfile: ./docker/accounts/Dockerfile dockerfile: ./docker/accounts/Dockerfile
container_name: accounts container_name: accounts
restart: unless-stopped restart: unless-stopped
logging: *default-logging logging: *default-logging
environment: environment:
- SKYNET_DB_HOST="mongo" - SKYNET_DB_HOST=mongo
- SKYNET_DB_PORT="27017" - SKYNET_DB_PORT=27017
- SKYNET_DB_USER=${SKYNET_DB_USER} - SKYNET_DB_USER=${SKYNET_DB_USER}
- SKYNET_DB_PASS=${SKYNET_DB_PASS} - SKYNET_DB_PASS=${SKYNET_DB_PASS}
expose: expose:
@ -207,11 +207,7 @@ services:
- SQA_OPT_OUT=true - SQA_OPT_OUT=true
volumes: volumes:
- ./docker/kratos/config:/etc/config/kratos - ./docker/kratos/config:/etc/config/kratos
- - kratos-sqlite:/var/lib/sqlite
type: volume
source: kratos-sqlite
target: /var/lib/sqlite
read_only: false
command: -c /etc/config/kratos/kratos.yml migrate sql -e --yes command: -c /etc/config/kratos/kratos.yml migrate sql -e --yes
networks: networks:
shared: shared:
@ -236,13 +232,8 @@ services:
command: serve -c /etc/config/kratos/kratos.yml command: serve -c /etc/config/kratos/kratos.yml
volumes: volumes:
- ./docker/kratos/config:/etc/config/kratos - ./docker/kratos/config:/etc/config/kratos
- - kratos-sqlite:/var/lib/sqlite
type: volume - type: bind
source: kratos-sqlite
target: /var/lib/sqlite
read_only: false
-
type: bind
source: ./.kratos.yml source: ./.kratos.yml
target: /etc/config/kratos/kratos.yml target: /etc/config/kratos/kratos.yml
networks: networks: