From 4998830fa1d0de7629447f732543ae6103cb4a7c Mon Sep 17 00:00:00 2001 From: Pierre Jaury Date: Sat, 16 Jun 2018 22:31:16 +0200 Subject: [PATCH] Update the docker compose to use the apache image --- docker-compose.yml | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8e9ccd4c..3867c202 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,35 +1,28 @@ --- version: '3' services: - nginx: - image: nginx:alpine - networks: - - internal - - external - ports: - - 3000:80 - volumes: - - "php-storage:/var/www/html" - - ./contrib/nginx.conf:/etc/nginx/conf.d/default.conf - depends_on: - - php - php: + pixelfed: build: . image: pixelfed volumes: - "php-storage:/var/www/html" networks: + - external - internal environment: + # The full list of available variables is documented in docker/env - DB_HOST=mysql - DB_DATABASE=pixelfed - DB_USERNAME=${DB_USERNAME:-pixelfed} - DB_PASSWORD=${DB_PASSWORD:-pixelfed} - REDIS_HOST=redis - - APP_KEY=${APP_KEY} - env_file: - - ./.env + - APP_KEY=SetYourAppKeyHere + - APP_NAME=Pixelfed + - APP_URL=https://your.url + - MAIL_HOST=mail.host + - MAIL_FROM_ADDRESS=noreply@your.url + - MAIL_FROM_NAME=Pixelfed mysql: image: mysql:5.7 @@ -40,8 +33,6 @@ services: - MYSQL_USER=${DB_USERNAME:-pixelfed} - MYSQL_PASSWORD=${DB_PASSWORD:-pixelfed} - MYSQL_RANDOM_ROOT_PASSWORD="true" - env_file: - - ./.env volumes: - "mysql-data:/var/lib/mysql"