Commit 512f1f36 authored by Jacob Priddy's avatar Jacob Priddy 👌

copy laravel env directly into container instead of voluming it

parent bcaae787
Pipeline #13216 failed with stages
in 4 minutes and 19 seconds
......@@ -103,6 +103,7 @@ deploy application:
- docker build -t $DOORCODE_IMAGE_NAME -f prod.Dockerfile .
- docker build --build-arg APP_IMAGE=$DOORCODE_IMAGE_NAME -t $NGINX_IMAGE_NAME -f nginx.Dockerfile .
- sed -i "s/\(^DB_PASSWORD=\).*/\1$(cat $POSTGRES_PASSWORD)/" $PROJ_DIR/.env
- cp $PROJ_DIR/.env .env
- docker stack deploy -c docker-compose.prod.yml doorcode --prune
# Give it some time to spin up...
- sleep 10
......
......@@ -116,7 +116,6 @@ services:
timeout: 3s
retries: 3
volumes:
- $PROJ_DIR/.env:/var/www/backend/.env:ro
- $PROJ_DIR/controller-bins:/var/www/backend/storage/app/controller/binaries:ro
- $PROJ_DIR/simple-saml/cert:/var/simplesamlphp/cert:ro
- $PROJ_DIR/simple-saml/config:/var/simplesamlphp/config:ro
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment