changed default network #1

Merged
rama merged 1 commits from testing into main 2023-11-26 12:15:04 +01:00

View File

@ -1,11 +1,12 @@
version: '1' version: '1'
networks: networks:
default: default:
name: "${TRAEFIK_NETWORK}"
external: true
db:
name: "${PROJECT_NAME}_planka_db_net" name: "${PROJECT_NAME}_planka_db_net"
external: false external: false
traefik:
name: "${TRAEFIK_NETWORK}"
external: true
services: services:
planka: planka:
container_name: "${PROJECT_NAME}_planka" container_name: "${PROJECT_NAME}_planka"
@ -25,7 +26,7 @@ services:
- "${PROJECT_DATA}/${PROJECT_NAME}-planka/planka/project-background-images:/app/public/project-background-images" - "${PROJECT_DATA}/${PROJECT_NAME}-planka/planka/project-background-images:/app/public/project-background-images"
- "${PROJECT_DATA}/${PROJECT_NAME}-planka/planka/attachments:/app/private/attachments" - "${PROJECT_DATA}/${PROJECT_NAME}-planka/planka/attachments:/app/private/attachments"
networks: networks:
- "db" - "traefik"
environment: environment:
- "BASE_URL=https://${PROJECT_URL}" - "BASE_URL=https://${PROJECT_URL}"
- "TRUST_PROXY=0" - "TRUST_PROXY=0"
@ -52,8 +53,6 @@ services:
container_name: "${PROJECT_NAME}_planka_db" container_name: "${PROJECT_NAME}_planka_db"
image: "postgres:alpine" image: "postgres:alpine"
restart: "unless-stopped" restart: "unless-stopped"
networks:
- "db"
labels: labels:
# Watchtower add to auto update # Watchtower add to auto update
- "com.centurylinklabs.watchtower.enable=true" - "com.centurylinklabs.watchtower.enable=true"