2022-08-22 06:22:30 +02:00
|
|
|
version: '3.9'
|
2022-08-20 05:22:07 +02:00
|
|
|
|
|
|
|
services:
|
2022-08-22 06:22:30 +02:00
|
|
|
# recording:
|
|
|
|
# container_name: birdnet_recording
|
|
|
|
# build:
|
|
|
|
# context: .
|
|
|
|
# dockerfile: ./docker/recording/Dockerfile
|
|
|
|
# restart: unless-stopped
|
|
|
|
# environment:
|
|
|
|
# - CHUNK_FOLDER=${CHUNK_FOLDER:-/media/birdnet/records}
|
|
|
|
# volumes:
|
2022-08-22 18:49:40 +02:00
|
|
|
# - ${RECORDS_FOLDER:-/media/birdnet/records}:${RECORS_FOLDER:-/media/birdnet/records}
|
2022-08-22 06:22:30 +02:00
|
|
|
# # Allow container to access to the hosts microphone
|
|
|
|
# devices:
|
2022-08-22 18:49:40 +02:00
|
|
|
# - /dev/snd:/dev/snd
|
2022-08-22 06:22:30 +02:00
|
|
|
# analyzer:
|
|
|
|
# container_name: birdnet_analyzer
|
|
|
|
# build:
|
|
|
|
# context: ./analyzer/
|
|
|
|
# dockerfile: ./Dockerfile
|
2022-08-20 05:22:07 +02:00
|
|
|
|
2022-08-22 18:49:40 +02:00
|
|
|
db:
|
|
|
|
container_name: birdnet_database
|
|
|
|
image: mariadb:latest
|
|
|
|
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
|
|
|
ports:
|
|
|
|
- '3306:3306'
|
|
|
|
networks:
|
|
|
|
birdnet_network:
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: ${DATABASE_ROOT_PASSWORD:-secret}'
|
|
|
|
MYSQL_DATABASE: ${DATABASE:-birdnet}
|
|
|
|
MYSQL_USER: ${DATABASE_USER:-birdnet}
|
|
|
|
MYSQL_PASSWORD: ${DATABASE_PASSWORD:-secret}
|
|
|
|
volumes:
|
|
|
|
- ./docker/database/init:/docker-entrypoint-initdb.d
|
|
|
|
restart: unless-stopped
|
2022-08-20 05:22:07 +02:00
|
|
|
|
2022-08-22 18:49:40 +02:00
|
|
|
php-fpm:
|
|
|
|
container_name: birdnet_php-fpm
|
|
|
|
image: php:${PHP_VERSION:-8.1}-fpm
|
|
|
|
ports:
|
|
|
|
- ${PHP_FPM_PORT:-9000}:9000
|
|
|
|
networks:
|
|
|
|
birdnet_network:
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- birdnet_app:${PROJECT_ROOT:-/opt/birdnet}
|
2022-08-22 06:22:30 +02:00
|
|
|
|
|
|
|
symfony:
|
|
|
|
container_name: birdnet_symfony
|
2022-08-22 18:49:40 +02:00
|
|
|
networks:
|
|
|
|
birdnet_network:
|
2022-08-20 05:22:07 +02:00
|
|
|
build:
|
2022-08-22 06:22:30 +02:00
|
|
|
context: .
|
|
|
|
dockerfile: ./docker/symfony/Dockerfile
|
2022-08-20 05:22:07 +02:00
|
|
|
environment:
|
2022-08-22 18:49:40 +02:00
|
|
|
- DATABASE_DEFAULT_URL=${DATABASE_DEFAULT_URL:-mysql://${DATABASE_USER:-birdnet}:${DATABASE_PASSWORD:-secret}@${DATABASE_HOST:-db}:3306/birdnet_default}
|
|
|
|
- DATABASE_OBSERVATION_URL=${DATABASE_OBSERVATION_URL:-mysql://${DATABASE_USER:-birdnet}:${DATABASE_PASSWORD:-secret}@${DATABASE_HOST:-db}:3306/birdnet_observation}
|
|
|
|
- RECORDS_FOLDER=${RECORDS_FOLDER:-/media/birdnet/records}
|
2022-08-20 05:22:07 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2022-08-22 18:49:40 +02:00
|
|
|
- birdnet_app:${PROJECT_ROOT:-/opt/birdnet}
|
|
|
|
- birdnet_recordings:${RECORDS_FOLDER:-/media/birdnet/records}
|
2022-08-22 06:22:30 +02:00
|
|
|
depends_on:
|
|
|
|
- db
|
2022-08-22 18:49:40 +02:00
|
|
|
|
2022-08-22 06:22:30 +02:00
|
|
|
nginx:
|
|
|
|
container_name: birdnet_nginx
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./docker/nginx/Dockerfile
|
2022-08-22 18:49:40 +02:00
|
|
|
args:
|
|
|
|
- SERVER_NAME=${SERVER_NAME:-birnet.local}
|
|
|
|
- SYMFONY_PUBLIC=${SYMFONY_PUBLIC:-/opt/birdnet/www/public}
|
|
|
|
- CHARTS_FOLDER=${CHARTS_FOLDER:-/media/birdnet/charts}
|
|
|
|
- RECORDS_FOLDER=${RECORDS_FOLDER:-/media/birdnet/records}
|
|
|
|
- PHP_FPM_HOST=${PHP_FPM_HOST:-php-fpm}
|
|
|
|
- PHP_FPM_PORT=${PHP_FPM_PORT:-9000}
|
2022-08-20 05:22:07 +02:00
|
|
|
ports:
|
2022-08-22 18:49:40 +02:00
|
|
|
- '80:80'
|
|
|
|
- '443:443'
|
|
|
|
volumes:
|
|
|
|
- birdnet_app:${RECORDS_FOLDER-/opt/birdnet}
|
|
|
|
- birdnet_recordings:${RECORDS_FOLDER-/media/data/records}
|
2022-08-22 06:22:30 +02:00
|
|
|
networks:
|
2022-08-22 18:49:40 +02:00
|
|
|
birdnet_network:
|
|
|
|
ipv4_address: ${IP_ADDRESS:-172.25.0.101}
|
|
|
|
aliases:
|
|
|
|
- ${SERVER_NAME:-birdnet.local}
|
2022-08-22 06:22:30 +02:00
|
|
|
restart: unless-stopped
|
2022-08-22 18:49:40 +02:00
|
|
|
depends_on:
|
|
|
|
- symfony
|
|
|
|
- php-fpm
|
2022-08-22 06:22:30 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
birdnet_network:
|
2022-08-22 18:49:40 +02:00
|
|
|
ipam:
|
|
|
|
config:
|
|
|
|
- subnet: ${IP_SUBNET:-172.25.0.0/24}
|
2022-08-20 05:22:07 +02:00
|
|
|
|
2022-08-22 06:22:30 +02:00
|
|
|
volumes:
|
2022-08-22 18:49:40 +02:00
|
|
|
birdnet_app:
|
|
|
|
|
|
|
|
birdnet_recordings:
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
device: ${RECORDS_FOLDER:-/media/data/records}
|
|
|
|
o: bind
|