Move a bunch of containers around

This commit is contained in:
2022-03-08 00:42:44 +00:00
parent 41e53a5f6d
commit f262a53009
4 changed files with 82 additions and 49 deletions

View File

@@ -20,7 +20,7 @@ services:
depends_on:
- db
db:
nextcloud_db:
image: mariadb:10.5
container_name: nextcloud_db
restart: unless-stopped
@@ -35,9 +35,40 @@ services:
- nextcloud
user: '1000:1000'
yourls:
build: https://git.karaolidis.com/Nikas36/yourls-plugins.git
image: yourls:custom
container_name: yourls
restart: unless-stopped
environment:
- 'YOURLS_DB_HOST=yourls_db:3306'
- 'YOURLS_DB_PASS=${YOURLS_DB_PASS}'
- 'YOURLS_SITE=${YOURLS_URL}'
- 'YOURLS_USER=${YOURLS_USER}'
- 'YOURLS_PASS=${YOURLS_PASS}'
networks:
- yourls
- proxy
depends_on:
- yourls_db
yourls_db:
image: mysql
container_name: yourls_db
restart: unless-stopped
volumes:
- '/home/nick/configs/routing/yourls:/var/lib/mysql'
environment:
- 'MYSQL_ROOT_PASSWORD=${YOURLS_DB_PASS}'
networks:
- yourls
user: '1000:1000'
networks:
nextcloud:
name: nextcloud
yourls:
name: yourls
proxy:
external: true
name: proxy

33
home/docker-compose.yml Normal file
View File

@@ -0,0 +1,33 @@
version: '3.9'
services:
homer_private:
image: b4bz/homer
container_name: homer_private
restart: unless-stopped
volumes:
- '/home/nick/configs/routing/homer:/www/assets'
environment:
- UID=1000
- GID=1000
networks:
- proxy
homer_social:
image: b4bz/homer
container_name: homer_social
restart: unless-stopped
volumes:
- '/home/nick/configs/routing/social:/www/assets'
environment:
- UID=1000
- GID=1000
networks:
- proxy
networks:
proxy:
external: true
name: proxy
yourls:
name: yourls

View File

@@ -47,20 +47,6 @@ services:
- PROXIED=false
network_mode: bridge
tor:
image: dperson/torproxy
container_name: tor
restart: unless-stopped
environment:
- TZ=Europe/Athens
- USERID=1000
- GROUPID=1000
ports:
- '8118:8118'
- '9050:9050'
networks:
- tor
homer_private:
image: b4bz/homer
container_name: homer_private
@@ -92,41 +78,8 @@ services:
networks:
- proxy
yourls:
build: https://git.karaolidis.com/Nikas36/yourls-plugins.git
image: yourls:custom
container_name: yourls
restart: unless-stopped
environment:
- 'YOURLS_DB_HOST=yourls_db:3306'
- 'YOURLS_DB_PASS=${YOURLS_DB_PASS}'
- 'YOURLS_SITE=${YOURLS_URL}'
- 'YOURLS_USER=${YOURLS_USER}'
- 'YOURLS_PASS=${YOURLS_PASS}'
networks:
- yourls
- proxy
depends_on:
- yourls_db
yourls_db:
image: mysql
container_name: yourls_db
restart: unless-stopped
volumes:
- '/home/nick/configs/routing/yourls:/var/lib/mysql'
environment:
- 'MYSQL_ROOT_PASSWORD=${YOURLS_DB_PASS}'
networks:
- yourls
user: '1000:1000'
networks:
proxy:
external: true
name: proxy
tor:
external: true
name: proxy
yourls:
name: yourls

View File

@@ -40,6 +40,20 @@ services:
- NET_ADMIN
- SYS_MODULE
tor:
image: dperson/torproxy
container_name: tor
restart: unless-stopped
environment:
- TZ=Europe/Athens
- USERID=1000
- GROUPID=1000
ports:
- '8118:8118'
- '9050:9050'
networks:
- tor
networks:
vpn:
name: vpn
@@ -47,3 +61,5 @@ networks:
driver: default
config:
- subnet: "172.20.0.0/16"
tor:
name: tor