2018-09-09 22:22:24 +02:00
|
|
|
version: '2.1'
|
|
|
|
services:
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: mariadb
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- db:/var/lib/mysql/
|
|
|
|
environment:
|
|
|
|
- MYSQL_RANDOM_ROOT_PASSWORD=yes
|
|
|
|
env_file:
|
|
|
|
- db.env
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
app:
|
|
|
|
build: ./app
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- friendica:/var/www/html
|
|
|
|
environment:
|
|
|
|
- FRIENDICA_ADMIN_MAIL=
|
|
|
|
- FRIENDICA_TZ=
|
|
|
|
- FRIENDICA_LANG=
|
|
|
|
- SITENAME=
|
|
|
|
- SMTP=
|
|
|
|
env_file:
|
|
|
|
- db.env
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
hostname: friendica.local
|
|
|
|
|
|
|
|
cron:
|
|
|
|
build: ./app
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- friendica:/var/www/html
|
|
|
|
entrypoint: /cron.sh
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- app
|
|
|
|
hostname: friendica.local
|
|
|
|
|
|
|
|
web:
|
|
|
|
image: nginx
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- friendica:/var/www/html:ro
|
|
|
|
- ./web/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
|
|
depends_on:
|
|
|
|
- app
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db:
|
2018-05-26 17:40:48 +02:00
|
|
|
friendica:
|