mirror of
https://github.com/Kovah/LinkAce.git
synced 2025-02-23 10:43:41 +01:00
- Specify registries in Dockerfiles such that Podman can resolve the dependencies - Add a name for the PHP container, such that the commands work when using `exec -it linkace-php` - Mention in CONTRIBUTING.md that Podman works also - Update the PHP version in CONTRIBUTING.md as proposed in https://github.com/Kovah/LinkAce/discussions/746#discussioncomment-9101259
58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
|
|
# --- MariaDB
|
|
db:
|
|
image: docker.io/library/mariadb:11.2
|
|
restart: unless-stopped
|
|
command: mariadbd --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
|
|
- MYSQL_USER=${DB_USERNAME}
|
|
- MYSQL_PASSWORD=${DB_PASSWORD}
|
|
- MYSQL_DATABASE=${DB_DATABASE}
|
|
volumes:
|
|
- db:/var/lib/mysql
|
|
|
|
# --- LinkAce Image with PHP
|
|
app:
|
|
image: docker.io/library/linkace/linkace:latest
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- db
|
|
volumes:
|
|
- ./.env:/app/.env
|
|
- ./backups:/app/storage/app/backups
|
|
- linkace_app:/app
|
|
- linkace_logs:/app/storage/logs
|
|
|
|
# --- nginx
|
|
nginx:
|
|
image: docker.io/bitnami/nginx:1.24
|
|
restart: unless-stopped
|
|
ports:
|
|
- "0.0.0.0:80:8080"
|
|
#- "0.0.0.0:443:8443"
|
|
depends_on:
|
|
- app
|
|
volumes:
|
|
- linkace_app:/app
|
|
# Replace `nginx.conf` with `nginx-ssl.conf` and remove the hash from the following line
|
|
# if you want to use HTTPS for this container
|
|
- ./nginx.conf:/opt/bitnami/nginx/conf/server_blocks/linkace.conf:ro
|
|
#- /path/to/your/ssl/certificates:/certs:ro
|
|
|
|
# --- Redis
|
|
redis:
|
|
image: docker.io/bitnami/redis:7.2
|
|
restart: unless-stopped
|
|
environment:
|
|
- REDIS_PASSWORD=${REDIS_PASSWORD}
|
|
|
|
volumes:
|
|
linkace_app:
|
|
linkace_logs:
|
|
db:
|
|
driver: local
|