From fc2d58f0bc83438f3ab56a6c7f26332cf7c7e381169d7e4492ab01f6477bb168 Mon Sep 17 00:00:00 2001 From: jeekkaaaa Date: Thu, 27 Mar 2025 12:40:46 +0000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20docker-compose.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..7fbc98d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,28 @@ +services: + postgres: + image: postgres:16-alpine + env_file: .env + restart: always + volumes: + - ./pgdata:/var/lib/postgresql/data + networks: + - network1 + linkwarden: + env_file: .env + environment: + - DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres + restart: always + # build: . # uncomment this line to build from source + image: ghcr.io/linkwarden/linkwarden:latest # comment this line to build from source + ports: + - 3489:3000 + volumes: + - ./data:/data/data + networks: + - network1 + depends_on: + - postgres +networks: + network1: + name: web + external: true \ No newline at end of file