Skip to content

Commit 36d4f0c

Browse files
committed
improvements
1 parent e7a81b9 commit 36d4f0c

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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"`
44
do
55
DC_FILES="$DC_FILES -f $F "
66
done

run/services/postgresql.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ DIR=data/postgresql
33

44
if [ ! -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

run/services/redis.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ if [ ! -d "$DIR" ]; then
55
mkdir data/redis
66
fi
77

8+
# -- bitnami image needs permissions
89
sudo chown -R 1001:1001 data/redis

services/docker-compose.frontend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "3.7"
22

33
services:
44
frontend:
5-
build: ./frontend
5+
build: ./services/frontend
66
restart: always
77
labels:
88
- "traefik.enable=true"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(`*`)"

services/docker-compose.redis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(`*`)"

setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -- running services' bash files
22
BASH_SYSTEM_FILES="bash run/acme.sh; bash run/data.sh;"
33
BASH_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"`
55
do
66
BASH_FILES="$BASH_FILES bash $F;"
77
done

0 commit comments

Comments
 (0)