File tree Expand file tree Collapse file tree 7 files changed +11
-7
lines changed
Expand file tree Collapse file tree 7 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 11# -- getting docker-compose files
2- DC_FILES=" docker-compose.main.yml"
3- for F in ` find ./services -type f -maxdepth 1 -name " docker-compose*.yml" `
2+ DC_FILES=" -f docker-compose.main.yml"
3+ for F in ` find ./services -maxdepth 1 -type f -name " docker-compose*.yml" `
44do
55 DC_FILES=" $DC_FILES -f $F "
66done
Original file line number Diff line number Diff line change @@ -3,4 +3,7 @@ DIR=data/postgresql
33
44if [ ! -d " $DIR " ]; then
55 mkdir data/postgresql
6- fi
6+ fi
7+
8+ # -- bitnami image needs permissions
9+ sudo chown -R 1001:1001 data/postgresql
Original file line number Diff line number Diff line change @@ -5,4 +5,5 @@ if [ ! -d "$DIR" ]; then
55 mkdir data/redis
66fi
77
8+ # -- bitnami image needs permissions
89sudo chown -R 1001:1001 data/redis
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: "3.7"
22
33services :
44 frontend :
5- build : ./frontend
5+ build : ./services/ frontend
66 restart : always
77 labels :
88 - " traefik.enable=true"
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ services:
99 - POSTGRESQL_PASSWORD=${POSTGRESQL_PASSWORD}
1010 - POSTGRESQL_DATABASE=${POSTGRESQL_DATABASE}
1111 volumes :
12- - .. /data/postgresql:/bitnami/postgresql
12+ - ./data/postgresql:/bitnami/postgresql
1313 labels :
1414 - " traefik.enable=true"
1515 - " traefik.tcp.routers.postgresql.rule=HostSNI(`*`)"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ services:
88 - REDIS_PASSWORD=${REDIS_PASSWORD}
99 - REDIS_DISABLE_COMMANDS=${REDIS_DISABLE_COMMANDS}
1010 volumes :
11- - .. /data/redis:/bitnami/postgresql
11+ - ./data/redis:/bitnami/postgresql
1212 labels :
1313 - " traefik.enable=true"
1414 - " traefik.tcp.routers.redis.rule=HostSNI(`*`)"
Original file line number Diff line number Diff line change 11# -- running services' bash files
22BASH_SYSTEM_FILES=" bash run/acme.sh; bash run/data.sh;"
33BASH_FILES=" "
4- for F in ` find ./run/services -type f -maxdepth 1 -name " *.sh" `
4+ for F in ` find ./run/services -maxdepth 1 -type f -name " *.sh" `
55do
66 BASH_FILES=" $BASH_FILES bash $F ;"
77done
You can’t perform that action at this time.
0 commit comments