adrema/docker-compose.yml

67 lines
1.6 KiB
YAML
Raw Normal View History

2023-05-15 19:48:37 +02:00
version: '3'
2022-02-28 21:07:12 +01:00
services:
2023-05-15 19:48:37 +02:00
webservice:
2023-07-21 11:28:45 +02:00
build:
context: .
dockerfile: ./.docker/nginx.Dockerfile
2023-05-15 19:48:37 +02:00
depends_on:
- php
ports:
- '8000:80'
2023-07-20 23:19:59 +02:00
volumes:
2023-07-21 11:28:45 +02:00
- ./data/storage:/app/storage/app
2023-05-15 19:48:37 +02:00
php:
2023-07-21 11:28:45 +02:00
build:
context: .
dockerfile: ./.docker/php.Dockerfile
2023-05-15 19:48:37 +02:00
depends_on:
- db
env_file:
- .app.env
environment:
DB_HOST: db
DB_DATABASE: db
DB_USERNAME: db
QUEUE_CONNECTION: redis
XELATEX_BIN: /usr/bin/xelatex
PDFLATEX_BIN: /usr/bin/pdflatex
REDIS_HOST: redis
2023-07-20 23:19:59 +02:00
volumes:
2023-07-21 11:28:45 +02:00
- ./data/storage:/app/storage/app
2023-07-20 23:19:59 +02:00
- ./cookies:/app/packages/laravel-nami/.cookies
2023-05-15 19:48:37 +02:00
horizon:
2023-07-21 11:28:45 +02:00
build:
context: .
dockerfile: ./.docker/php.Dockerfile
2023-05-15 19:48:37 +02:00
depends_on:
- db
- php
2023-07-20 22:58:51 +02:00
command: /bin/horizon-entrypoint
2023-05-15 19:48:37 +02:00
env_file:
- .app.env
environment:
DB_HOST: db
DB_DATABASE: db
DB_USERNAME: db
QUEUE_CONNECTION: redis
XELATEX_BIN: /usr/bin/xelatex
PDFLATEX_BIN: /usr/bin/pdflatex
REDIS_HOST: redis
db:
image: mariadb:10.6.5
2023-07-20 20:28:19 +02:00
env_file:
- .app.env
2023-05-15 19:48:37 +02:00
environment:
2023-07-20 20:28:19 +02:00
MARIADB_RANDOM_ROOT_PASSWORD: yes
2023-05-15 19:48:37 +02:00
MYSQL_DATABASE: db
MYSQL_USER: db
volumes:
- ./data/db:/var/lib/mysql
redis:
image: redis:alpine3.18
container_name: redis