From 0e623f82b2e349617062f3a3ee0a72422ea10551 Mon Sep 17 00:00:00 2001 From: altf4arnold Date: Wed, 22 May 2024 03:00:31 +0200 Subject: [PATCH] [ADD] Adding IPv6 connectivity from withing the container (wasn't aware it wasn't done by default) --- .github/workflows/deploy.yml | 2 +- docker-compose.yml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7d0227c..99a67d6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -33,4 +33,4 @@ jobs: END - name: Run Deploy run: | - ssh target "cd tldtest && git pull origin master && docker-compose down && docker-compose up --build -d" \ No newline at end of file + ssh target "cd tldtest && docker-compose down && git pull origin master && docker-compose up --build -d" \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index d1413e1..c7e49be 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,11 +8,23 @@ services: - "127.0.0.1:8000:8000" depends_on: - db + networks: + - tldnet db: image: postgres:15 volumes: - postgres_data:/var/lib/postgresql/data/ env_file: - env.prod.db + networks: + - tldnet volumes: postgres_data: + +networks: + tldnet: + driver: bridge + enable_ipv6: true + ipam: + config: + - subnet: "2a01:4f8:1c1b:7011::2:0/112" \ No newline at end of file