2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2025-04-04 14:52:12 +02:00
docker/.examples/docker-compose/insecure/mariadb-cron-redis/apache/docker-compose.yml
nupplaPhil 43b1640b80
Add MySQL DB wait possibility
- remove sleep
- Add new binary "wait-for-connection" in /usr/local/bin
- Use new possibility for auto-installer
2019-11-28 20:50:59 +01:00

52 lines
No EOL
834 B
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:
build: ./app
restart: always
volumes:
- friendica:/var/www/html
environment:
- FRIENDICA_ADMIN_MAIL=
- FRIENDICA_TZ=
- FRIENDICA_LANG=
- FRIENDICA_URL=
- FRIENDICA_SITENAME=
- SMTP=
env_file:
- db.env
depends_on:
- db
hostname: friendica.local
ports:
- "80:80"
cron:
build: ./app
restart: always
volumes:
- friendica:/var/www/html
entrypoint: /cron.sh
depends_on:
- db
env_file:
- db.env
hostname: friendica.local
volumes:
db:
friendica: