Skip to content

Instantly share code, notes, and snippets.

@ParadoxGuitarist
Created March 23, 2021 06:08
Show Gist options
  • Save ParadoxGuitarist/1b47ab04230d58a991aee2eef496822b to your computer and use it in GitHub Desktop.
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)
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