Compare commits

..

5 commits

5 changed files with 31 additions and 17 deletions

View file

@ -6,7 +6,7 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- freshrss - freshrss
- mariadb - postgres
- proxy - proxy
ports: ports:
- 8088:80 - 8088:80
@ -36,7 +36,7 @@ services:
networks: networks:
freshrss: freshrss:
external: false external: false
mariadb: postgres:
external: true external: true
proxy: proxy:
external: true external: true

View file

@ -8,14 +8,9 @@ services:
- TZ=Europe/Helsinki - TZ=Europe/Helsinki
- USER_UID=1000 - USER_UID=1000
- USER_GID=1000 - USER_GID=1000
- DB_TYPE=mysql
- DB_HOST=mariadb:3306
- DB_NAME=gitea
- DB_USER=gitea
- DB_PASSWD=${MYSQL_PASS}
restart: unless-stopped restart: unless-stopped
networks: networks:
- mariadb - postgres
- proxy - proxy
ports: ports:
- "3000:3000" - "3000:3000"
@ -40,7 +35,7 @@ services:
- "traefik.http.services.gitea.loadbalancer.server.port=3000" - "traefik.http.services.gitea.loadbalancer.server.port=3000"
networks: networks:
mariadb: postgres:
external: true external: true
proxy: proxy:
external: true external: true

View file

@ -13,7 +13,7 @@ services:
restart: unless-stopped restart: unless-stopped
networks: networks:
- homeautomation - homeautomation
- mariadb - postgres
- proxy - proxy
ports: ports:
- "8123:8123" - "8123:8123"
@ -133,11 +133,11 @@ services:
volumes: volumes:
- /docker/homeautomation/gotify:/app/data - /docker/homeautomation/gotify:/app/data
environment: environment:
- GOTIFY_DATABASE_DIALECT=mysql - GOTIFY_DATABASE_DIALECT=postgres
- GOTIFY_DATABASE_CONNECTION=gotify:gotify@tcp(mariadb:3306)/gotify?charset=utf8&parseTime=True&loc=Local - GOTIFY_DATABASE_CONNECTION="host=postgres port=5432 user=gotify dbname=gotify password=${GOTIFY_PGPASS} sslmode=disable"
networks: networks:
- proxy - proxy
- mariadb - postgres
restart: unless-stopped restart: unless-stopped
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
@ -158,7 +158,7 @@ services:
networks: networks:
homeautomation: homeautomation:
external: false external: false
mariadb: postgres:
external: true external: true
proxy: proxy:
external: true external: true

View file

@ -9,7 +9,7 @@ services:
- "1869:80" - "1869:80"
networks: networks:
- nextcloud - nextcloud
- mariadb - postgres
- proxy - proxy
volumes: volumes:
- /docker/nextcloud:/var/www/html - /docker/nextcloud:/var/www/html
@ -19,7 +19,6 @@ services:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
environment: environment:
- TZ=Europe/Helsinki - TZ=Europe/Helsinki
- MYSQL_HOST=mariadb-nextcloud
- REDIS_HOST=redis - REDIS_HOST=redis
- REDIS_HOST_PASSWORD=123 - REDIS_HOST_PASSWORD=123
depends_on: depends_on:
@ -61,7 +60,7 @@ services:
networks: networks:
nextcloud: nextcloud:
external: false external: false
mariadb: postgres:
external: true external: true
proxy: proxy:
external: true external: true

View file

@ -0,0 +1,20 @@
version: "3"
services:
postgres:
container_name: postgres
image: postgres:13
environment:
- TZ=Europe/Helsinki
- POSTGRES_PASSWORD=12345
ports:
- 5432:5432
networks:
- postgres
volumes:
- /docker/postgres:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
networks:
postgres:
external: true