docker/docker-compose.yml

136 lines
4 KiB
YAML
Raw Normal View History

2023-12-09 12:54:38 +01:00
services:
nginx:
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./certs/:/etc/nginx/certs/:ro
restart: always
depends_on:
- wordpress
- mobilizon
2024-06-20 21:43:22 +02:00
# - gancio
2023-12-09 12:54:38 +01:00
networks:
default:
aliases:
- wp.lan
- mz.lan
2024-06-20 21:43:22 +02:00
- ga.lan
2023-12-09 12:54:38 +01:00
postgres:
container_name: mobilizon_db
restart: unless-stopped
image: postgis/postgis
environment:
- POSTGRES_USER=mobilizon
- POSTGRES_PASSWORD=mobilizon
- POSTGRES_DB=mobilizon
- POSTGRES_PORT=5432
volumes:
- mobilizon_database_data:/var/lib/postgresql/data
2023-12-10 13:19:03 +01:00
ports:
- "5432:5432"
2023-12-09 12:54:38 +01:00
mobilizon:
container_name: mobilizon
2024-06-20 21:43:22 +02:00
image: docker.io/framasoft/mobilizon
2023-12-09 12:54:38 +01:00
depends_on:
- postgres
environment:
MOBILIZON_INSTANCE_NAME: Mobilizon Local
2023-12-09 12:54:38 +01:00
MOBILIZON_INSTANCE_HOST: mz.lan
2024-06-20 21:43:22 +02:00
MOBILIZON_INSTANCE_LISTEN_IP: "0.0.0.0"
MOBILIZON_INSTANCE_PORT: "4000"
MOBILIZON_INSTANCE_EMAIL: linos@example.com
MOBILIZON_REPLY_EMAIL: linos@example.com
MOBILIZON_INSTANCE_REGISTRATIONS_OPEN: true
2023-12-09 12:54:38 +01:00
MOBILIZON_DATABASE_USERNAME: mobilizon
2024-06-20 21:43:22 +02:00
MOBILIZON_DATABASE_PASSWORD: mobilizon
2023-12-09 12:54:38 +01:00
MOBILIZON_DATABASE_DBNAME: mobilizon
2024-06-20 21:43:22 +02:00
MOBILIZON_DATABASE_HOST: mobilizon_db
MOBILIZON_DATABASE_PORT: "5432"
MOBILIZON_DATABASE_SSL: false
MOBILIZON_INSTANCE_SECRET_KEY_BASE: Twxx5T5En+PeV6q79o+K9EPtAQ6wCVldqPP3m3JQo3idqqddNH8w9bxZQTNQ1ssgKsk=
MOBILIZON_INSTANCE_SECRET_KEY: pcv2o2Fq591I0V91NVwJHpWL2IAsd7+bwcyMmUhuAoXpjhlbdB0hI251O8M27Bs9+SM=
MOBILIZON_LOGLEVEL: info # debug
MOBILIZON_CA_CERT_PATH: "/usr/share/ca-certificates/mozilla/ca-certificates.crt"
volumes:
- ./mobilizon/uploads:/var/lib/mobilizon/uploads
#- ./mobilizon/config.exs:/etc/mobilizon/config.exs:ro
- /etc/ssl/certs/ca-certificates.crt:/usr/share/ca-certificates/mozilla/ca-certificates.crt:rox
- /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:rox
- /etc/ssl/certs/mkcert_linos_yoga__Andr___Menrath_.pem:/usr/share/ca-certificates/mozilla/mkcert_linos_yoga__Andr___Menrath_.pem:roxs
- /etc/ssl/certs/mkcert_linos_yoga__Andr___Menrath_.pem:/etc/ssl/certs/mkcert_linos_yoga__Andr___Menrath_.pem:rox
2023-12-09 12:54:38 +01:00
ports:
2024-06-20 21:43:22 +02:00
- "4000:4000"
2023-12-09 12:54:38 +01:00
2024-06-19 12:48:05 +02:00
# gancio:
# restart: always
# image: cisti/gancio
# container_name: gancio
# environment:
# - PATH=$PATH:/home/node/.yarn/bin
# - GANCIO_DATA=/home/node/data
# - NODE_ENV=development
# - GANCIO_DB_DIALECT=sqlite
# - GANCIO_DB_STORAGE=./gancio.sqlite
# volumes:
# - ./gancio/data:/home/node/data
# ports:
# - "13120:13120"
2023-12-09 12:54:38 +01:00
wordpress:
build:
context: ./wordpress
dockerfile: Dockerfile
volumes:
- ./wordpress/wordpress:/var/www/html
2023-12-10 13:19:03 +01:00
- /etc/ssl/certs/ca-certificates.crt:/var/www/html/wp-includes/certificates/ca-bundle.crt:ro
- ./wordpress/vscode/launch.json:/var/www/html/.vscode/launch.json:rw
2023-12-09 12:54:38 +01:00
environment:
- DOCKER_DEV_DOMAIN=wp.lan
- WORDPRESS_DB_NAME=wordpress
- WORDPRESS_TABLE_PREFIX=wp_
- WORDPRESS_DB_HOST=mariadb
- WORDPRESS_DB_USER=root
- WORDPRESS_DB_PASSWORD=password
- WORDPRESS_DEBUG=True
depends_on:
- mariadb
- phpmyadmin
- mobilizon
restart: always
expose:
- "80"
- "9003"
extra_hosts:
- "host.docker.internal:host-gateway"
mariadb:
image: mariadb:latest
volumes:
- wordpress_database_data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_USER=root
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=wordpress
restart: always
phpmyadmin:
depends_on:
- mariadb
image: phpmyadmin/phpmyadmin:latest
restart: always
environment:
PMA_HOST: mariadb
MYSQL_ROOT_PASSWORD: password
ports:
- 8180:80
2023-12-09 12:54:38 +01:00
volumes:
wordpress_database_data:
mobilizon_database_data: