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: