podman volume
This commit is contained in:
1 parent
59c6e2cd86
commit
005cc52994
2 files changed
+18
-1
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
- name: Create Compose File
|
||||
template:
|
||||
src: "docker-compose.yml.j2"
|
||||
src: "app/docker-compose.yml.j2"
|
||||
dest: "/home/{{ user.name }}/docker-compose.yml"
|
||||
owner: "{{ user.name }}"
|
||||
group: "{{ user.name }}"
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
services:
|
||||
# Example app to proxy to
|
||||
nextcloud-aio:
|
||||
image: ghcr.io/nextcloud-releases/all-in-one:latest
|
||||
container_name: nextcloud-aio-leader
|
||||
restart: always
|
||||
ports:
|
||||
- 0.0.0.0:8080:8080
|
||||
- 0.0.0.0:8443:8443
|
||||
volumes:
|
||||
- nextcloud_aio_leader:/mnt/docker-aio-config
|
||||
- /run/user/{{ getent_passwd[user.name][2] }}/podman/podman.sock:/tmp/docker.sock:ro
|
||||
env:
|
||||
- NEXTCLOUD_DATADIR="/home/{{ user.name }}/"
|
||||
# Note: No need to expose ports to the host; Caddy talks to it via the internal docker network.
|
||||
volumes:
|
||||
nextcloud_aio_leader:
|
||||
Reference in new issue
Block a user