File tree Expand file tree Collapse file tree 4 files changed +33
-25
lines changed Expand file tree Collapse file tree 4 files changed +33
-25
lines changed Original file line number Diff line number Diff line change 38
38
/www /thumbnails
39
39
/www /.htaccess
40
40
npm-debug.log
41
- stack_management.sh
41
+ stack.sh
42
+ /.vagrant
43
+
Original file line number Diff line number Diff line change 60
60
# choose to launch only some workers, see worker profile list below.
61
61
# - "worker" : launch one container worker with all jobs run on it.
62
62
# - "cmd" : launch a container based on worker image, useful for run cmd manualy.
63
- # - "db" : db profile will launch a mariadb container,
63
+ # - "db" : db profile will launch a mariadb container, with data stored on host and mounted in the db container.
64
64
# because this is the primary datastore, you should use you own SGDD service for production needs.
65
+ # - "db-docker-vol" : same as "db" profile but with data stored in a docker volume.
65
66
# - "elastisearch" : launch a elasticsearch container.
66
67
# - "rabbitmq" : launch a rabbitmq container.
67
68
# - "redis" : launch a redis container for app cache.
Original file line number Diff line number Diff line change 1
1
services :
2
-
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
2
db-mysql8 :
25
3
image : mysql:8.0.36-debian
26
4
# 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
@@ -51,4 +29,5 @@ services:
51
29
internal :
52
30
aliases :
53
31
- db
32
+
54
33
Original file line number Diff line number Diff line change @@ -19,7 +19,33 @@ services:
19
19
volumes :
20
20
- ${PHRASEANET_DB_DIR}:/var/lib/mysql
21
21
networks :
22
- - internal
22
+ internal :
23
+ aliases :
24
+ - db
25
+
26
+ db-docker-vol :
27
+ image : $PHRASEANET_DOCKER_REGISTRY/phraseanet-db:$PHRASEANET_DOCKER_TAG
28
+ build : ./docker/db
29
+ restart : on-failure
30
+ profiles : ["db-docker-vol"]
31
+ environment :
32
+ - MYSQL_ROOT_PASSWORD
33
+ - MYSQL_MAX_ALLOWED_PACKET
34
+ - MYSQL_MAX_CONNECTION
35
+ - MYSQL_LONG_QUERY_TIME
36
+ - MYSQL_SLOW_QUERY_LOG
37
+ - MYSQL_QUERY_CACHE_LIMIT
38
+ - MYSQL_QUERY_CACHE_SIZE
39
+ - MYSQL_KEY_BUFFER_SIZE
40
+ - MYSQL_CONNECT_TIMEOUT
41
+ - MYSQL_WAIT_TIMEOUT
42
+ - MARIADB_AUTO_UPGRADE
43
+ volumes :
44
+ - db_vol:/var/lib/mysql
45
+ networks :
46
+ internal :
47
+ aliases :
48
+ - db
23
49
24
50
rabbitmq :
25
51
image : $RABBITMQ_IMAGE_TAG
You can’t perform that action at this time.
0 commit comments