mirror of
https://github.com/friendica/docker
synced 2024-05-18 00:46:40 +02:00
Philipp Holzer
1281654f27
- Cache-Driver (env CACHE_DRIVER) - memcache (env MEMCACHE_HOST, MEMCACHE_PORT) - memcached (env MEMCACHED_HOSTS) - reds (env REDIS_HOST, REDIS_PORT) - Added some doku - Added some example docker-compose files (mariadb-cron-redis)
60 lines
1 KiB
YAML
60 lines
1 KiB
YAML
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:
|
|
image: friendica/server:apache
|
|
restart: always
|
|
volumes:
|
|
- friendica:/var/www/html
|
|
environment:
|
|
- AUTOINSTALL=true
|
|
- CACHE_DRIVER=redis
|
|
- REDIS_HOST=redis
|
|
- MAILNAME=
|
|
- TZ=
|
|
- LANGUAGE=
|
|
- SMTP=
|
|
env_file:
|
|
- db.env
|
|
depends_on:
|
|
- db
|
|
hostname: friendica.local
|
|
ports:
|
|
- "80:80"
|
|
|
|
cron:
|
|
image: friendica/server:apache
|
|
restart: always
|
|
volumes:
|
|
- friendica:/var/www/html
|
|
entrypoint: /cron.sh
|
|
environment:
|
|
- CACHE_DRIVER=redis
|
|
- REDIS_HOST=redis
|
|
- MAILNAME=
|
|
- TZ=
|
|
- LANGUAGE=
|
|
- SMTP=
|
|
env_file:
|
|
- db.env
|
|
depends_on:
|
|
- db
|
|
hostname: friendica.local
|
|
|
|
volumes:
|
|
db:
|
|
friendica: |