File tree Expand file tree Collapse file tree 3 files changed +40
-7
lines changed Expand file tree Collapse file tree 3 files changed +40
-7
lines changed Original file line number Diff line number Diff line change 42
42
#
43
43
# - "docker-compose.limits.yml" : defines containers cpu and memory limits for all Phraseanet and gateway containers only.
44
44
#
45
- # - "docker-compose.altenatives .yml": all alternative services, used only on evoluation or transition periods
45
+ # - "docker-compose.alternatives .yml": all alternative services, used only on evolution or transition or testing periods
46
46
#
47
47
# 2/ "COMPOSE_PROFILES" value define which profiles you want to use
48
48
# in docker-compose.
@@ -279,7 +279,7 @@ RABBITMQ_MANAGEMENT_PORT=10811
279
279
RABBITMQ_HOSTNAME = rabbit_phraseanet
280
280
281
281
# @run
282
- RABBITMQ_IMAGE_VERSION = rabbitmq:4.1.0-management
282
+ RABBITMQ_IMAGE_TAG = rabbitmq:4.1.0-management
283
283
284
284
# --- Gateway settings (Nginx) -----------------------------------------------------------------------------------------
285
285
@@ -580,6 +580,17 @@ DB_BACKUP_CRON_TIME=
580
580
# @run
581
581
DB_BACKUP_GZIP_LEVEL = 9
582
582
583
+ # --- redis cache settings ---------------------------------------------------------------------------------------------
584
+
585
+ # Redis session Image Tag.
586
+ # @run
587
+ REDIS_CACHE_IMAGE_TAG = redis:8.0.1
588
+
589
+ # --- redis session settings ---------------------------------------------------------------------------------------------
590
+
591
+ # Redis cache Image Tag.
592
+ # @run
593
+ REDIS_SESSION_IMAGE_TAG = redis:8.0.1
583
594
584
595
# --- Pusher Settings ---
585
596
# Phraseanet use the Pusher service to notify users of asynchronous downloads https://pusher.com.
Original file line number Diff line number Diff line change 1
1
services :
2
2
3
3
db :
4
+ image : $PHRASEANET_DOCKER_REGISTRY/phraseanet-db:$PHRASEANET_DOCKER_TAG
5
+ build : ./docker/db
6
+ restart : on-failure
7
+ profiles : ["db-volume-container"]
8
+ environment :
9
+ - MYSQL_ROOT_PASSWORD
10
+ - MYSQL_MAX_ALLOWED_PACKET
11
+ - MYSQL_MAX_CONNECTION
12
+ - MYSQL_LONG_QUERY_TIME
13
+ - MYSQL_SLOW_QUERY_LOG
14
+ - MYSQL_QUERY_CACHE_LIMIT
15
+ - MYSQL_QUERY_CACHE_SIZE
16
+ - MYSQL_KEY_BUFFER_SIZE
17
+ - MYSQL_CONNECT_TIMEOUT
18
+ - MYSQL_WAIT_TIMEOUT
19
+ - MARIADB_AUTO_UPGRADE
20
+ volumes :
21
+ - db_vol:/var/lib/mysql
22
+ networks :
23
+ - internal
24
+ db-mysql8 :
4
25
image : mysql:8.0.36-debian
5
26
# 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
6
27
# (this is just an example, not intended to be a production configuration)
7
28
command : --default-authentication-plugin=mysql_native_password --max_allowed_packet=$MYSQL_MAX_ALLOWED_PACKET --max_connections=$MYSQL_MAX_CONNECTION --long_query_time=$MYSQL_LONG_QUERY_TIME --sql_mode="NO_ENGINE_SUBSTITUTION"
8
29
restart : on-failure
9
30
profiles : ["mysql8"]
10
31
entrypoint :
11
- sh -c "
32
+ sh -c \ "
12
33
echo 'CREATE DATABASE IF NOT EXISTS ab_master CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;CREATE DATABASE IF NOT EXISTS db_databox1 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;CREATE DATABASE IF NOT EXISTS db_unitTest CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;CREATE DATABASE IF NOT EXISTS db_dataset1 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;CREATE DATABASE IF NOT EXISTS db_dataset2 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE USER `$PHRASEANET_DB_USER`@`%` IDENTIFIED BY \"$PHRASEANET_DB_PASSWORD\";GRANT ALL PRIVILEGES ON *.* to `$PHRASEANET_DB_USER`@`%`;' > /docker-entrypoint-initdb.d/init.sql;
13
34
chmod +x /usr/local/bin/docker-entrypoint.sh /docker-entrypoint-initdb.d/init.sql;
14
35
/usr/local/bin/docker-entrypoint.sh --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --default-authentication-plugin=mysql_native_password --max_allowed_packet=$MYSQL_MAX_ALLOWED_PACKET --max_connections=$MYSQL_MAX_CONNECTION --long_query_time=$MYSQL_LONG_QUERY_TIME --sql_mode="NO_ENGINE_SUBSTITUTION" --slow_query_log=$MYSQL_SLOW_QUERY_LOG
15
- "
36
+ \ "
16
37
environment :
17
38
- MYSQL_ROOT_PASSWORD
18
39
- MYSQL_MAX_ALLOWED_PACKET
@@ -28,3 +49,4 @@ services:
28
49
- ${PHRASEANET_DB_DIR}_mysql8:/var/lib/mysql:rw
29
50
networks :
30
51
- internal
52
+
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ services:
22
22
- internal
23
23
24
24
rabbitmq :
25
- image : $RABBITMQ_IMAGE_VERSION
25
+ image : $RABBITMQ_IMAGE_TAG
26
26
profiles : ["rabbitmq"]
27
27
restart : on-failure
28
28
hostname : $RABBITMQ_HOSTNAME
@@ -35,14 +35,14 @@ services:
35
35
- internal
36
36
37
37
redis :
38
- image : redis
38
+ image : $REDIS_CACHE_IMAGE_TAG
39
39
profiles : ["redis"]
40
40
restart : on-failure
41
41
networks :
42
42
- internal
43
43
44
44
redis-session :
45
- image : redis
45
+ image : $REDIS_SESSION_IMAGE_TAG
46
46
profiles : ["redis-session"]
47
47
restart : on-failure
48
48
networks :
You can’t perform that action at this time.
0 commit comments