mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-07 10:04:27 +00:00
docker compose files reorganisation
This commit is contained in:
@@ -38,4 +38,6 @@
|
|||||||
/www/thumbnails
|
/www/thumbnails
|
||||||
/www/.htaccess
|
/www/.htaccess
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
stack_management.sh
|
stack.sh
|
||||||
|
/.vagrant
|
||||||
|
|
||||||
|
3
.env
3
.env
@@ -60,8 +60,9 @@
|
|||||||
# choose to launch only some workers, see worker profile list below.
|
# choose to launch only some workers, see worker profile list below.
|
||||||
# - "worker" : launch one container worker with all jobs run on it.
|
# - "worker" : launch one container worker with all jobs run on it.
|
||||||
# - "cmd" : launch a container based on worker image, useful for run cmd manualy.
|
# - "cmd" : launch a container based on worker image, useful for run cmd manualy.
|
||||||
# - "db" : db profile will launch a mariadb container,
|
# - "db" : db profile will launch a mariadb container, with data stored on host and mounted in the db container.
|
||||||
# because this is the primary datastore, you should use you own SGDD service for production needs.
|
# because this is the primary datastore, you should use you own SGDD service for production needs.
|
||||||
|
# - "db-docker-vol" : same as "db" profile but with data stored in a docker volume.
|
||||||
# - "elastisearch" : launch a elasticsearch container.
|
# - "elastisearch" : launch a elasticsearch container.
|
||||||
# - "rabbitmq" : launch a rabbitmq container.
|
# - "rabbitmq" : launch a rabbitmq container.
|
||||||
# - "redis" : launch a redis container for app cache.
|
# - "redis" : launch a redis container for app cache.
|
||||||
|
@@ -1,26 +1,4 @@
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
db:
|
|
||||||
image: $PHRASEANET_DOCKER_REGISTRY/phraseanet-db:$PHRASEANET_DOCKER_TAG
|
|
||||||
build: ./docker/db
|
|
||||||
restart: on-failure
|
|
||||||
profiles: ["db-volume-container"]
|
|
||||||
environment:
|
|
||||||
- MYSQL_ROOT_PASSWORD
|
|
||||||
- MYSQL_MAX_ALLOWED_PACKET
|
|
||||||
- MYSQL_MAX_CONNECTION
|
|
||||||
- MYSQL_LONG_QUERY_TIME
|
|
||||||
- MYSQL_SLOW_QUERY_LOG
|
|
||||||
- MYSQL_QUERY_CACHE_LIMIT
|
|
||||||
- MYSQL_QUERY_CACHE_SIZE
|
|
||||||
- MYSQL_KEY_BUFFER_SIZE
|
|
||||||
- MYSQL_CONNECT_TIMEOUT
|
|
||||||
- MYSQL_WAIT_TIMEOUT
|
|
||||||
- MARIADB_AUTO_UPGRADE
|
|
||||||
volumes:
|
|
||||||
- db_vol:/var/lib/mysql
|
|
||||||
networks:
|
|
||||||
- internal
|
|
||||||
db-mysql8:
|
db-mysql8:
|
||||||
image: mysql:8.0.36-debian
|
image: mysql:8.0.36-debian
|
||||||
# NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
|
# NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
|
||||||
@@ -52,3 +30,4 @@ services:
|
|||||||
aliases:
|
aliases:
|
||||||
- db
|
- db
|
||||||
|
|
||||||
|
|
||||||
|
@@ -19,7 +19,33 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ${PHRASEANET_DB_DIR}:/var/lib/mysql
|
- ${PHRASEANET_DB_DIR}:/var/lib/mysql
|
||||||
networks:
|
networks:
|
||||||
- internal
|
internal:
|
||||||
|
aliases:
|
||||||
|
- db
|
||||||
|
|
||||||
|
db-docker-vol:
|
||||||
|
image: $PHRASEANET_DOCKER_REGISTRY/phraseanet-db:$PHRASEANET_DOCKER_TAG
|
||||||
|
build: ./docker/db
|
||||||
|
restart: on-failure
|
||||||
|
profiles: ["db-docker-vol"]
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD
|
||||||
|
- MYSQL_MAX_ALLOWED_PACKET
|
||||||
|
- MYSQL_MAX_CONNECTION
|
||||||
|
- MYSQL_LONG_QUERY_TIME
|
||||||
|
- MYSQL_SLOW_QUERY_LOG
|
||||||
|
- MYSQL_QUERY_CACHE_LIMIT
|
||||||
|
- MYSQL_QUERY_CACHE_SIZE
|
||||||
|
- MYSQL_KEY_BUFFER_SIZE
|
||||||
|
- MYSQL_CONNECT_TIMEOUT
|
||||||
|
- MYSQL_WAIT_TIMEOUT
|
||||||
|
- MARIADB_AUTO_UPGRADE
|
||||||
|
volumes:
|
||||||
|
- db_vol:/var/lib/mysql
|
||||||
|
networks:
|
||||||
|
internal:
|
||||||
|
aliases:
|
||||||
|
- db
|
||||||
|
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
image: $RABBITMQ_IMAGE_TAG
|
image: $RABBITMQ_IMAGE_TAG
|
||||||
|
Reference in New Issue
Block a user