podcastartgenerator/docker-compose.yml

56 lines
1.2 KiB
YAML
Raw Normal View History

version: '3'
services:
podcastartgenerator-app:
image: shinsenter/laravel:latest
volumes:
- ./site:/var/www/html
- ./static:/static
environment:
TZ: UTC
PUID: ${UID:-1000}
PGID: ${GID:-1000}
REDIS_HOST: redis
DB_HOST: db
DB_DATABASE: laravel
DB_USERNAME: root
DB_PASSWORD: mydb_p@ssw0rd
# LARAVEL_QUEUE_ENABLED: true
# LARAVEL_QUEUE_OPTIONS: --timeout=60 --tries=3 redis
# LARAVEL_SCHEDULE_ENABLED: true
ports:
- "80:80"
links:
- db
- redis
- static
static:
image: nginx:alpine
volumes:
- ./static:/usr/share/nginx/html:ro
environment:
TZ: UTC
PUID: ${UID:-1000}
PGID: ${GID:-1000}
ports:
- "8181:80"
db:
image: mariadb:latest
environment:
TZ: UTC
MYSQL_ROOT_PASSWORD: mydb_p@ssw0rd
MYSQL_DATABASE: laravel
volumes:
- "./db/data:/var/lib/mysql"
- "./db/dump:/docker-entrypoint-initdb.d"
ports:
- "3306:3306"
redis:
image: redis:latest
ports:
- "6379:6379"
npm:
image: node:latest
working_dir: /var/www/html
entrypoint: ["npm"]
volumes:
- ./site:/var/www/html