mirror of
https://github.com/anyproto/any-sync-dockercompose.git
synced 2025-06-08 14:07:02 +09:00
docker-compose.yml added "stop_signal" and refactoring "command"
This commit is contained in:
parent
c7ab9914d3
commit
ab3dcd93cc
1 changed files with 9 additions and 9 deletions
|
@ -4,6 +4,7 @@ services:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile-generateconfig-anyconf
|
dockerfile: Dockerfile-generateconfig-anyconf
|
||||||
|
stop_signal: SIGKILL
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/code
|
- ./:/code
|
||||||
- "${STORAGE_DIR}:/code/storage"
|
- "${STORAGE_DIR}:/code/storage"
|
||||||
|
@ -16,6 +17,7 @@ services:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile-generateconfig-processing
|
dockerfile: Dockerfile-generateconfig-processing
|
||||||
|
stop_signal: SIGKILL
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/code
|
- ./:/code
|
||||||
- "${STORAGE_DIR}:/code/storage"
|
- "${STORAGE_DIR}:/code/storage"
|
||||||
|
@ -25,7 +27,7 @@ services:
|
||||||
generateconfig-processing:
|
generateconfig-processing:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
image: "mongo:${MONGO_VERSION}"
|
image: "mongo:${MONGO_VERSION}"
|
||||||
command: --replSet ${MONGO_REPLICA_SET} --port ${MONGO_1_PORT}
|
command: ["--replSet", "${MONGO_REPLICA_SET}", "--port", "${MONGO_1_PORT}"]
|
||||||
ports:
|
ports:
|
||||||
- "${MONGO_1_PORT}:${MONGO_1_PORT}"
|
- "${MONGO_1_PORT}:${MONGO_1_PORT}"
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -41,7 +43,7 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
image: "redis/redis-stack-server:${REDIS_VERSION}"
|
image: "redis/redis-stack-server:${REDIS_VERSION}"
|
||||||
restart: always
|
restart: always
|
||||||
command: redis-server --port ${REDIS_PORT} --dir /data/ --appendonly yes --maxmemory 256mb --maxmemory-policy noeviction --protected-mode no --loadmodule /opt/redis-stack/lib/redisbloom.so
|
command: ["redis-server", "--port", "${REDIS_PORT}", "--dir", "/data/", "--appendonly", "yes", "--maxmemory", "256mb", "--maxmemory-policy", "noeviction", "--protected-mode", "no", "--loadmodule", "/opt/redis-stack/lib/redisbloom.so"]
|
||||||
ports:
|
ports:
|
||||||
- "${REDIS_PORT}:${REDIS_PORT}"
|
- "${REDIS_PORT}:${REDIS_PORT}"
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -55,7 +57,7 @@ services:
|
||||||
minio:
|
minio:
|
||||||
image: "minio/minio:${MINIO_VERSION}"
|
image: "minio/minio:${MINIO_VERSION}"
|
||||||
restart: always
|
restart: always
|
||||||
command: server /data --console-address ":${MINIO_WEB_PORT}" --address ":${MINIO_PORT}"
|
command: ["server", "/data", "--console-address", ":${MINIO_WEB_PORT}", "--address", ":${MINIO_PORT}"]
|
||||||
environment:
|
environment:
|
||||||
MINIO_ROOT_USER: "${AWS_ACCESS_KEY_ID}"
|
MINIO_ROOT_USER: "${AWS_ACCESS_KEY_ID}"
|
||||||
MINIO_ROOT_PASSWORD: "${AWS_SECRET_ACCESS_KEY}"
|
MINIO_ROOT_PASSWORD: "${AWS_SECRET_ACCESS_KEY}"
|
||||||
|
@ -81,10 +83,7 @@ services:
|
||||||
restart: "no"
|
restart: "no"
|
||||||
depends_on:
|
depends_on:
|
||||||
- minio
|
- minio
|
||||||
entrypoint:
|
command: [ "mc", "mb", "minio/${MINIO_BUCKET}"]
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- mc mb minio/${MINIO_BUCKET}
|
|
||||||
|
|
||||||
any-sync-coordinator_bootstrap:
|
any-sync-coordinator_bootstrap:
|
||||||
image: "ghcr.io/anyproto/any-sync-coordinator:${ANY_SYNC_COORDINATOR_VERSION}"
|
image: "ghcr.io/anyproto/any-sync-coordinator:${ANY_SYNC_COORDINATOR_VERSION}"
|
||||||
|
@ -96,7 +95,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./etc/any-sync-coordinator/:/etc/any-sync-coordinator/
|
- ./etc/any-sync-coordinator/:/etc/any-sync-coordinator/
|
||||||
restart: "no"
|
restart: "no"
|
||||||
command: bash -c "/bin/any-sync-confapply -c /etc/any-sync-coordinator/config.yml -n /etc/any-sync-coordinator/network.yml -e"
|
command: ["/bin/any-sync-confapply", "-c", "/etc/any-sync-coordinator/config.yml", "-n", "/etc/any-sync-coordinator/network.yml", "-e"]
|
||||||
|
|
||||||
any-sync-coordinator:
|
any-sync-coordinator:
|
||||||
image: "ghcr.io/anyproto/any-sync-coordinator:${ANY_SYNC_COORDINATOR_VERSION}"
|
image: "ghcr.io/anyproto/any-sync-coordinator:${ANY_SYNC_COORDINATOR_VERSION}"
|
||||||
|
@ -234,7 +233,8 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/code
|
- ./:/code
|
||||||
- "${STORAGE_DIR}:/code/storage"
|
- "${STORAGE_DIR}:/code/storage"
|
||||||
command: "tail -f /dev/null"
|
command: ["tail", "-f", "/dev/null"]
|
||||||
|
stop_signal: SIGKILL
|
||||||
tty: true
|
tty: true
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: any-sync-netcheck -c /code/storage/docker-generateconfig/nodes.yml 2>&1| grep -P 'netcheck\s+success'
|
test: any-sync-netcheck -c /code/storage/docker-generateconfig/nodes.yml 2>&1| grep -P 'netcheck\s+success'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue