Created
March 23, 2021 06:08
-
-
Save ParadoxGuitarist/1b47ab04230d58a991aee2eef496822b to your computer and use it in GitHub Desktop.
Podman Compose Fie for NextCloud with MariaDB (use db.env from NC's git)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 3.8 | |
| services: | |
| db: | |
| image: mariadb | |
| restart: always | |
| volumes: | |
| - db:/var/lib/mysql | |
| network: | |
| - nextcloud-net | |
| environment: | |
| - MYSQL_ROOT_PASSWORD=<CorrectHorseBatteryStaple> | |
| env_file: | |
| - db.env | |
| app: | |
| image: nextcloud:apache | |
| restart: always | |
| ports: | |
| - 8080:80 | |
| volumes: | |
| - web:/var/www/html | |
| - type: bind | |
| source: </media/mount/with/tons/of/storage owned by whoever runs podman-compose up> | |
| target: /var/www/html/data | |
| environment: | |
| - MYSQL_HOST=db | |
| network: | |
| - nextcloud-net | |
| env_file: | |
| - db.env | |
| depends_on: | |
| - db | |
| volumes: | |
| db: {} | |
| web: {} | |
| networks: | |
| nextcloud-net: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment