wip-feat: reduces env vars, adds getting-started page
This commit is contained in:
102
example.compose.yml
Normal file
102
example.compose.yml
Normal file
@@ -0,0 +1,102 @@
|
||||
services:
|
||||
caddy:
|
||||
image: caddy:2.9.1
|
||||
restart: unless-stopped
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "443:443/udp"
|
||||
volumes:
|
||||
- $PWD/bash/caddy:/etc/caddy
|
||||
- $PWD/bash/certs:/etc/ssl
|
||||
|
||||
app:
|
||||
image: torsearch_test
|
||||
ports:
|
||||
- "8001:80"
|
||||
environment:
|
||||
APP_ENV: dev
|
||||
APP_URL: ${APP_URL}
|
||||
APP_SECRET: ${APP_SECRET}
|
||||
DATABASE_URL: ${DATABASE_URL}
|
||||
READ_DEBRID_KEY: ${REAL_DEBRID_KEY}
|
||||
TMDB_API: ${TMDB_API}
|
||||
MERCURE_JWT_SECRET: ${MERCURE_JWT_SECRET}
|
||||
REDIS_HOST: ${REDIS_HOST}
|
||||
|
||||
LDAP_HOST: directory.caldwell.local
|
||||
LDAP_PORT: 389
|
||||
LDAP_ENCRYPTION: none
|
||||
LDAP_BASE_DN: "dc=caldwell,dc=local"
|
||||
LDAP_BIND_USER: "uid=admin,cn=users,cn=accounts,dc=caldwell,dc=local"
|
||||
LDAP_BIND_PASS: "Caldwell.24272911"
|
||||
LDAP_DN_STRING: "uid={user_identifier},cn=users,cn=accounts,dc=caldwell,dc=local"
|
||||
LDAP_UID_KEY: "uid"
|
||||
LDAP_ADMIN_ROLE_DN: ""
|
||||
LDAP_EMAIL_ATTRIBUTE: mail
|
||||
LDAP_USERNAME_ATTRIBUTE: uid
|
||||
LDAP_NAME_ATTRIBUTE: displayname
|
||||
|
||||
worker:
|
||||
image: torsearch_test
|
||||
volumes:
|
||||
- ./downloads/:/var/download
|
||||
command: php ./bin/console messenger:consume async -v --time-limit=3600 --limit=10
|
||||
environment:
|
||||
APP_URL: ${APP_URL}
|
||||
APP_SECRET: ${APP_SECRET}
|
||||
DATABASE_URL: ${DATABASE_URL}
|
||||
READ_DEBRID_KEY: ${REAL_DEBRID_KEY}
|
||||
TMDB_API: ${TMDB_API}
|
||||
MERCURE_JWT_SECRET: ${MERCURE_JWT_SECRET}
|
||||
REDIS_HOST: ${REDIS_HOST}
|
||||
|
||||
scheduler:
|
||||
image: torsearch_test
|
||||
volumes:
|
||||
- ./downloads:/var/download
|
||||
command: php ./bin/console messenger:consume scheduler_monitor -vv --time-limit=3600
|
||||
environment:
|
||||
APP_URL: ${APP_URL}
|
||||
APP_SECRET: ${APP_SECRET}
|
||||
DATABASE_URL: ${DATABASE_URL}
|
||||
READ_DEBRID_KEY: ${REAL_DEBRID_KEY}
|
||||
TMDB_API: ${TMDB_API}
|
||||
MERCURE_JWT_SECRET: ${MERCURE_JWT_SECRET}
|
||||
REDIS_HOST: ${REDIS_HOST}
|
||||
|
||||
mercure:
|
||||
image: dunglas/mercure
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:80"
|
||||
environment:
|
||||
SERVER_NAME: ':80'
|
||||
MERCURE_PUBLISHER_JWT_KEY: ${MERCURE_JWT_SECRET}
|
||||
MERCURE_SUBSCRIBER_JWT_KEY: ${MERCURE_JWT_SECRET}
|
||||
MERCURE_EXTRA_DIRECTIVES: |
|
||||
cors_origins *
|
||||
anonymous
|
||||
command: /usr/bin/caddy run --config /etc/caddy/dev.Caddyfile
|
||||
volumes:
|
||||
- mercure_data:/data
|
||||
- mercure_config:/config
|
||||
|
||||
database:
|
||||
image: mariadb:10.11.2
|
||||
ports:
|
||||
- "3306:3306"
|
||||
volumes:
|
||||
- mysql:/var/lib/mysql
|
||||
environment:
|
||||
MYSQL_DATABASE: app
|
||||
MYSQL_USERNAME: app
|
||||
MYSQL_PASSWORD: password
|
||||
MYSQL_ROOT_PASSWORD: password
|
||||
|
||||
volumes:
|
||||
mysql:
|
||||
mercure_config:
|
||||
mercure_data:
|
||||
Reference in New Issue
Block a user