1
0
mirror of https://github.com/Kovah/LinkAce.git synced 2025-02-22 18:22:26 +01:00
LinkAce/docker-compose.yml
Kovah a93d1b8b33
Large update for the Docker-based setup of Linkace
- Adds new Dockerfile for unified PHP-nginx container
- Adds new configuration files for simple setup with unified container
- Removes Redis from simple setup
- Changes default cache and session driver form Redis to file
- Updates nginx configuration accordingly
2020-09-07 23:14:53 +02:00

56 lines
1.2 KiB
YAML

---
version: "3"
services:
# --- MariaDB
db:
container_name: "linkace-db"
image: bitnami/mariadb:10.5
environment:
- MARIADB_ROOT_PASSWORD=${DB_PASSWORD}
- MARIADB_USER=${DB_USERNAME}
- MARIADB_PASSWORD=${DB_PASSWORD}
- MARIADB_DATABASE=${DB_DATABASE}
ports:
- "127.0.0.1:3306:3306"
volumes:
- linkace-db:/bitnami
# --- PHP
php:
container_name: "linkace-php"
build:
context: .
dockerfile: ./resources/docker/dockerfiles/development.Dockerfile
depends_on:
- db
volumes:
- .:/app:delegated
- ./resources/docker/php/php-dev.ini:/opt/bitnami/php/etc/conf.d/php.ini:ro
# --- nginx
nginx:
container_name: "linkace-nginx"
image: bitnami/nginx:1.19
ports:
- "80:8080"
depends_on:
- php
volumes:
- .:/app:delegated
- ./resources/docker/nginx/site.conf:/opt/bitnami/nginx/conf/server_blocks/linkace.conf:ro
# --- Redis
redis:
container_name: "linkace-redis"
image: bitnami/redis:6.0
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
ports:
- "127.0.0.1:6379:6379"
volumes:
linkace-db:
driver: local