2023-06-21 09:53:21 -04:00
|
|
|
version: '3'
|
2023-06-23 18:38:44 -04:00
|
|
|
|
2023-06-21 09:53:21 -04:00
|
|
|
services:
|
2023-06-23 18:38:44 -04:00
|
|
|
laravel-app:
|
|
|
|
env_file: .env
|
2023-06-21 09:53:21 -04:00
|
|
|
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
|
2023-06-23 18:38:44 -04:00
|
|
|
DB_DATABASE: ${DB_DATABASE}
|
|
|
|
DB_USERNAME: ${DB_USERNAME}
|
|
|
|
DB_PASSWORD: ${DB_PASSWORD}
|
2023-06-21 09:53:21 -04:00
|
|
|
# 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
|
2023-06-23 18:38:44 -04:00
|
|
|
env_file: .env
|
2023-06-21 09:53:21 -04:00
|
|
|
environment:
|
|
|
|
TZ: UTC
|
2023-06-23 18:38:44 -04:00
|
|
|
MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
|
|
|
|
MARIADB_USER: ${DB_USERNAME}
|
|
|
|
MARIADB_DATABASE: ${DB_DATABASE}
|
|
|
|
MARIADB_PASSWORD: ${DB_PASSWORD}
|
2023-06-21 09:53:21 -04:00
|
|
|
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
|