From 744eb37561f5bd37d271ac27e2796800da90bdf4 Mon Sep 17 00:00:00 2001 From: GeorgeC Date: Thu, 12 Dec 2024 09:12:42 -0500 Subject: [PATCH] Configure dictionary network as external in docker-compose --- docker-compose.dev.yml | 30 ++++++++++++++++++++++++++++++ docker-compose.yml | 1 + 2 files changed, 31 insertions(+) create mode 100644 docker-compose.dev.yml diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml new file mode 100644 index 0000000..9432c52 --- /dev/null +++ b/docker-compose.dev.yml @@ -0,0 +1,30 @@ +# Use for local development. This file will create the "dictionary" network. +# The Production file expects the network to already exist. +version: '3.3' + +services: + dictionary-db: + container_name: dictionary-db + image: postgres:16-alpine + volumes: + - picsure-search:/var/lib/postgresql/data + - ./db/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro + env_file: .env + networks: + - dictionary + dictionary-api: + container_name: dictionary-api + image: avillach/dictionary-api:latest + build: . + depends_on: + - dictionary-db + restart: always + env_file: .env + networks: + - dictionary + +volumes: + picsure-search: + +networks: + dictionary: \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 8ae6d75..4a946c2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,6 +28,7 @@ volumes: networks: dictionary: + external: true picsure: external: true hpdsNet: