persist cockroach db on mounted volume
This commit is contained in:
parent
8f155f32cf
commit
905b4298cb
|
@ -15,7 +15,6 @@ networks:
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
webapp:
|
webapp:
|
||||||
kratos-sqlite:
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
sia:
|
sia:
|
||||||
|
@ -208,7 +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
|
- ./docker/data/cockroachd/sqlite:/var/lib/sqlite
|
||||||
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:
|
||||||
|
@ -233,10 +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
|
- ./docker/data/cockroachd/sqlite:/var/lib/sqlite
|
||||||
- type: bind
|
- ./.kratos.yml:/etc/config/kratos/kratos.yml
|
||||||
source: ./.kratos.yml
|
|
||||||
target: /etc/config/kratos/kratos.yml
|
|
||||||
networks:
|
networks:
|
||||||
shared:
|
shared:
|
||||||
ipv4_address: 10.10.10.81
|
ipv4_address: 10.10.10.81
|
||||||
|
@ -291,7 +288,7 @@ services:
|
||||||
container_name: cockroachd
|
container_name: cockroachd
|
||||||
command: start --insecure
|
command: start --insecure
|
||||||
volumes:
|
volumes:
|
||||||
- kratos-sqlite:/cockroach/cockroach-data
|
- ./docker/data/cockroachd/sqlite:/cockroach/cockroach-data
|
||||||
expose:
|
expose:
|
||||||
- 26257
|
- 26257
|
||||||
networks:
|
networks:
|
||||||
|
|
Reference in New Issue