To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit be747350 authored by root's avatar root
Browse files

Update docker-compose for mounted deployment

The site code is now mounted externally, so the image does not
need to be updated when the website is updated. The site code
can be updated using a Gitlab runner with remote access to the
repository.
parent 0ba4971d
Pipeline #99400 failed with stage
in 1 minute and 5 seconds
APP_ENV=dev
APP_SECRET=f31913c913dc9d6541e9f6e3157e2268
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
MAILER_URL=null://localhost
APP_ENV=prod
MAILER_URL=
FROM php:7.3.22-apache-stretch
COPY ./ /var/www/html/
WORKDIR /var/www/html/
ENV APACHE_DOCUMENT_ROOT /var/www/html/public
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
......
......@@ -6,9 +6,14 @@ services:
context: .
dockerfile: Dockerfile
environment:
- VIRTUAL_HOST=thealternative.ch
- LETSENCRYPT_HOST=thealternative.ch
- LETSENCRYPT_EMAIL=info@thealternative.ch
- VIRTUAL_HOST=thealternative.ch
- LETSENCRYPT_HOST=thealternative.ch
- LETSENCRYPT_EMAIL=info@thealternative.ch
- MAILER_ULR=${MAILER_URL}
- APP_ENV=${APP_ENV}
volumes:
- /home/thealt-website/website:/var/www/html/
restart: unless-stopped
networks:
default:
......
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