1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 01:05:36 +00:00
pixelfed/docker-compose.yml

65 lines
1.2 KiB
YAML
Raw Normal View History

2018-05-20 13:02:29 +00:00
---
version: '3'
services:
nginx:
image: nginx:alpine
networks:
- internal
- external
2018-05-20 13:02:29 +00:00
ports:
- 3000:80
2018-05-20 13:02:29 +00:00
volumes:
- "php-storage:/var/www/html"
- ./contrib/nginx.conf:/etc/nginx/conf.d/default.conf
2018-05-20 13:02:29 +00:00
depends_on:
- php
2018-05-20 13:02:29 +00:00
php:
build: .
image: pixelfed
2018-05-20 13:02:29 +00:00
volumes:
- "php-storage:/var/www/html"
networks:
- internal
2018-05-20 13:02:29 +00:00
environment:
- DB_HOST=mysql
- DB_DATABASE=pixelfed
- DB_USERNAME=${DB_USERNAME:-pixelfed}
- DB_PASSWORD=${DB_PASSWORD:-pixelfed}
2018-05-20 13:02:29 +00:00
- REDIS_HOST=redis
- APP_KEY=${APP_KEY}
env_file:
- ./.env
2018-05-20 13:02:29 +00:00
mysql:
image: mysql:5.7
networks:
- internal
2018-05-20 13:02:29 +00:00
environment:
- MYSQL_DATABASE=pixelfed
- MYSQL_USER=${DB_USERNAME:-pixelfed}
- MYSQL_PASSWORD=${DB_PASSWORD:-pixelfed}
- MYSQL_RANDOM_ROOT_PASSWORD="true"
env_file:
- ./.env
2018-05-20 13:02:29 +00:00
volumes:
- "mysql-data:/var/lib/mysql"
2018-05-20 13:02:29 +00:00
redis:
image: redis:alpine
volumes:
- "redis-data:/data"
networks:
- internal
volumes:
redis-data:
mysql-data:
php-storage:
networks:
internal:
internal: true
external:
driver: bridge