Skip to content

Commit 029781a

Browse files
committed
nextcloud experiment
docker compose, .env work
1 parent 73c2c4d commit 029781a

6 files changed

Lines changed: 46 additions & 13 deletions

File tree

apps/autogenerate-hosts/.env.example

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
TARGET_IP=192.168.13.2
2-
DOMAIN_NAME=ctrlh
1+
TARGET_IP=10.0.1.11
2+
DOMAIN_NAME=cats
33
DNSMASQ_PATH=/dest/npm-hosts
4-
HOSTSFILE_PATH=/opt/lib/dnsmasq/autohosts.d
5-
DB_PATH=/opt/docker/nginx-proxy-manager/data/database.sqlite
4+
5+
HOSTSFILE_PATH=/opt/hackstack/lib/dnsmasq/autohosts.d
6+
DB_PATH=/opt/hackstack/apps/nginx-proxy-manager/data/database.sqlite
7+
68
TZ=America/Los_Angeles
79

810
# Image version (optional, defaults to latest)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
services:
22
autogenerate-hosts:
3-
image: ghcr.io/romkey/pdxhackstack-autogenerate-hosts:${IMAGE_VERSION:-latest}
3+
image: ghcr.io/romkey/pdxhackerspace-hackstack-autogenerate-hosts:${IMAGE_VERSION:-latest}
44
container_name: autogenerate-hosts
55
hostname: autogenerate-hosts
66
restart: unless-stopped
7+
env_file:
8+
- .env
79
volumes:
810
- "${DB_PATH}:${DB_PATH}"
911
- "${HOSTSFILE_PATH}:/dest"
10-
env_file:
11-
- .env

apps/db-backup/docker-compose.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
services:
2-
dbbackup:
2+
db-backup:
33
image: ghcr.io/romkey/hackstack-db-backup:latest
4-
hostname: dbbackup
5-
container_name: dbbackup
4+
hostname: db-backup
5+
container_name: db-backup
66
restart: unless-stopped
7+
user: "${BACKUP_UID:-0}:${BACKUP_GID:-0}"
8+
env_file:
9+
- .env
710
volumes:
8-
- /opt:/opt:ro
11+
- ${DBBACKUP_PARENT_HOST_PATH}:/opt:ro
912
- backup_nfs:/dest
1013
networks:
1114
- postgresql
1215
- mariadb
13-
env_file:
14-
- .env
1516

1617
volumes:
1718
backup_nfs:

experiments/homebox/.rsync-exclude

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
config/confg.yml

experiments/nextcloud/.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
POSTGRES_DB=nextcloud_db
2+
POSTGRES_USER=nextcloud_user
3+
POSTGRES_PASSWORD=<PASSWORD>
4+
POSTGRES_HOST=postgresql
5+
6+
NEXTCLOUD_ADMIN_USER=admin
7+
NEXTCLOUD_ADMIN_PASSWORD=<ADMIN_PASSWORD>
8+
9+
NEXTCLOUD_TRUSTED_DOMAINS=nextcloud.ctrlh,cloud.pdxhackerspace.org
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
services:
2+
nextcloud:
3+
image: nextcloud
4+
restart: unless-stopped
5+
# ports:
6+
# - 8080:80
7+
volumes:
8+
- ../../lib/nextcloud:/var/www/html
9+
networks:
10+
- proxy
11+
- db
12+
env_file:
13+
- .env
14+
networks:
15+
proxy:
16+
name: nginx-proxy-net
17+
external: true
18+
db:
19+
name: postgres-net
20+
external: true

0 commit comments

Comments
 (0)