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 20:27:33 +02:00
|
|
|
# - ${RECORDS_DIR:-/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:
|
2022-08-22 20:27:33 +02:00
|
|
|
- '9000:9000'
|
2022-08-22 18:49:40 +02:00
|
|
|
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}
|
2022-08-22 20:27:33 +02:00
|
|
|
- RECORDS_DIR=/media/birdnet/records
|
|
|
|
restart: on-failure
|
2022-08-20 05:22:07 +02:00
|
|
|
volumes:
|
2022-08-22 18:49:40 +02:00
|
|
|
- birdnet_app:${PROJECT_ROOT:-/opt/birdnet}
|
2022-08-22 20:27:33 +02:00
|
|
|
- birdnet_records:${RECORDS_DIR:-/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
|
2022-08-22 20:27:33 +02:00
|
|
|
hostname: ${SERVER_NAME:-birdnet.local}
|
2022-08-22 06:22:30 +02:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./docker/nginx/Dockerfile
|
2022-08-22 18:49:40 +02:00
|
|
|
args:
|
|
|
|
- SERVER_NAME=${SERVER_NAME:-birnet.local}
|
2022-08-22 20:27:33 +02:00
|
|
|
- SYMFONY_PUBLIC=/opt/birdnet/www/public
|
|
|
|
- CHARTS_DIR=/media/birdnet/charts
|
|
|
|
- RECORDS_DIR=/media/birdnet/records
|
|
|
|
- PHP_FPM_HOST=php-fpm
|
|
|
|
- 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:
|
2022-08-22 20:27:33 +02:00
|
|
|
- birdnet_app:/opt/birdnet
|
|
|
|
- birdnet_records:/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:
|
|
|
|
|
2022-08-22 20:27:33 +02:00
|
|
|
birdnet_records:
|
2022-08-22 18:49:40 +02:00
|
|
|
driver_opts:
|
|
|
|
type: none
|
2022-08-22 20:27:33 +02:00
|
|
|
device: ${RECORDS_DIR:-/media/data/records}
|
2022-08-22 18:49:40 +02:00
|
|
|
o: bind
|