mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-03-12 07:05:42 +00:00
Update the docker compose to use the apache image
This commit is contained in:
parent
583abdf37a
commit
4998830fa1
1 changed files with 9 additions and 18 deletions
|
@ -1,35 +1,28 @@
|
||||||
---
|
---
|
||||||
version: '3'
|
version: '3'
|
||||||
services:
|
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: .
|
build: .
|
||||||
image: pixelfed
|
image: pixelfed
|
||||||
volumes:
|
volumes:
|
||||||
- "php-storage:/var/www/html"
|
- "php-storage:/var/www/html"
|
||||||
networks:
|
networks:
|
||||||
|
- external
|
||||||
- internal
|
- internal
|
||||||
environment:
|
environment:
|
||||||
|
# The full list of available variables is documented in docker/env
|
||||||
- DB_HOST=mysql
|
- DB_HOST=mysql
|
||||||
- DB_DATABASE=pixelfed
|
- DB_DATABASE=pixelfed
|
||||||
- DB_USERNAME=${DB_USERNAME:-pixelfed}
|
- DB_USERNAME=${DB_USERNAME:-pixelfed}
|
||||||
- DB_PASSWORD=${DB_PASSWORD:-pixelfed}
|
- DB_PASSWORD=${DB_PASSWORD:-pixelfed}
|
||||||
- REDIS_HOST=redis
|
- REDIS_HOST=redis
|
||||||
- APP_KEY=${APP_KEY}
|
- APP_KEY=SetYourAppKeyHere
|
||||||
env_file:
|
- APP_NAME=Pixelfed
|
||||||
- ./.env
|
- APP_URL=https://your.url
|
||||||
|
- MAIL_HOST=mail.host
|
||||||
|
- MAIL_FROM_ADDRESS=noreply@your.url
|
||||||
|
- MAIL_FROM_NAME=Pixelfed
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:5.7
|
image: mysql:5.7
|
||||||
|
@ -40,8 +33,6 @@ services:
|
||||||
- MYSQL_USER=${DB_USERNAME:-pixelfed}
|
- MYSQL_USER=${DB_USERNAME:-pixelfed}
|
||||||
- MYSQL_PASSWORD=${DB_PASSWORD:-pixelfed}
|
- MYSQL_PASSWORD=${DB_PASSWORD:-pixelfed}
|
||||||
- MYSQL_RANDOM_ROOT_PASSWORD="true"
|
- MYSQL_RANDOM_ROOT_PASSWORD="true"
|
||||||
env_file:
|
|
||||||
- ./.env
|
|
||||||
volumes:
|
volumes:
|
||||||
- "mysql-data:/var/lib/mysql"
|
- "mysql-data:/var/lib/mysql"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue