forked from Luke-Sikina/picsure-search-refinement
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure dictionary network as external in docker-compose
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ volumes: | |
|
||
networks: | ||
dictionary: | ||
external: true | ||
picsure: | ||
external: true | ||
hpdsNet: | ||
|