update for 2 api servers in docker
This commit is contained in:
@ -37,6 +37,23 @@ services:
|
||||
#entrypoint: ["/app/wait-for.sh", "postgres-db:5432", "--", ""]
|
||||
#command: python3 manage.py runserver 0.0.0.0:8100
|
||||
|
||||
api2:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.gdal
|
||||
command: python3 manage.py runserver 0.0.0.0:8101
|
||||
volumes:
|
||||
- .:/app
|
||||
ports:
|
||||
- 8101:8101
|
||||
env_file:
|
||||
- .env
|
||||
restart: "on-failure"
|
||||
depends_on:
|
||||
- postgres-db
|
||||
networks:
|
||||
- rog-api
|
||||
|
||||
networks:
|
||||
rog-api:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user