Updates Development files

This commit is contained in:
Sam ONeill 2023-04-15 22:57:10 +12:00
parent 57bd2b4174
commit e9ce7c0fa9
4 changed files with 6 additions and 7 deletions

View file

@ -1,4 +1,3 @@
PROJECT_ROOT=""
DOMAIN=""
# Emails from Let's Encrypt about your certificate will go here
LE_EMAIL=""

View file

@ -2,13 +2,12 @@
# preserve original production files
mv ./docker-compose.yml ./docker-compose.production.yml
mv ./pathfinder.Dockerfile ./pathfinder.Dockerfile.production
mv ./static/pathfinder/environment.ini ./static/pathfinder/environment.production.ini
mv ./static/php/php.ini ./static/php/php.production.ini
# copy development versions
cp ./development/docker-compose.development.yml ./docker-compose.yml
cp ./development/pathfinder.Dockerfile.developm ./pathfinder.Dockerfile
cp ./development/pathfinder.Dockerfile.development ./Dockerfile
cp ./development/environment.development.ini ./static/pathfinder/environment.ini
cp ./development/php.development.ini ./static/php/php.ini
cp ./development/xdebug.ini ./static/php/xdebug.ini
@ -24,7 +23,6 @@ while true; do
esac
done
if [ ! "$NO_ENV" == "true" ]; then
echo "PROJECT_ROOT=\"$(pwd)\"" > ./.env
cat ./development/.env.development >> ./.env
cp ./development/.env.development ./.env
echo "WARNING: .env has been replaced, remember to fill any required variables"
fi

View file

@ -11,7 +11,7 @@ services:
- "$MYSQL_HOST"
volumes:
- db_data:/var/lib/mysql
- $PROJECT_ROOT/pathfinder/export/sql/eve_universe.sql.zip:/eve_universe.sql.zip
- ./pathfinder/export/sql/eve_universe.sql.zip:/eve_universe.sql.zip
restart: always
pf-redis:
image: redis:6.2.5-alpine3.14
@ -37,7 +37,9 @@ services:
restart: always
pf:
hostname: "pathfinder"
build: '.'
build:
context: '.'
dockerfile: pathfinder.Dockerfile
env_file:
- .env
labels: