Skip to content

Commit

Permalink
Configure dictionary network as external in docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcolon021 committed Dec 12, 2024
1 parent d2014e4 commit 744eb37
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -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:
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ volumes:

networks:
dictionary:
external: true
picsure:
external: true
hpdsNet:
Expand Down

0 comments on commit 744eb37

Please sign in to comment.