Skip to content

Commit

Permalink
Define network in docker-compose.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Jono Yang <[email protected]>
  • Loading branch information
JonoYang committed Oct 25, 2023
1 parent ad37ccc commit a3d8ffd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ services:
volumes:
- /etc/purldb/:/etc/purldb/
- static:/var/purldb/static/
networks:
- purldb
depends_on:
- db

Expand All @@ -33,6 +35,8 @@ services:
- docker.env
volumes:
- /etc/purldb/:/etc/purldb/
networks:
- purldb
profiles:
- visit_and_map
depends_on:
Expand All @@ -46,6 +50,8 @@ services:
- docker.env
volumes:
- /etc/purldb/:/etc/purldb/
networks:
- purldb
profiles:
- visit_and_map
depends_on:
Expand All @@ -59,6 +65,8 @@ services:
- docker.env
volumes:
- /etc/purldb/:/etc/purldb/
networks:
- purldb
profiles:
- clearsync
depends_on:
Expand All @@ -68,6 +76,8 @@ services:
clearindex:
build: .
command: wait-for-it web:8000 -- python manage.py run_clearindex
networks:
- purldb
profiles:
- clearsync
depends_on:
Expand All @@ -81,6 +91,8 @@ services:
- docker.env
volumes:
- /etc/purldb/:/etc/purldb/
networks:
- purldb
profiles:
- scan_queue
depends_on:
Expand All @@ -94,6 +106,8 @@ services:
- docker.env
volumes:
- /etc/purldb/:/etc/purldb/
networks:
- purldb
profiles:
- scan_queue
depends_on:
Expand All @@ -107,6 +121,8 @@ services:
- docker.env
volumes:
- /etc/purldb/:/etc/purldb/
networks:
- purldb
profiles:
- priority_queue
depends_on:
Expand All @@ -124,6 +140,10 @@ services:
depends_on:
- web

networks:
purldb:
external: true

volumes:
db_data:
static:

0 comments on commit a3d8ffd

Please sign in to comment.