docker
This commit is contained in:
46
docker-compose.yml
Normal file
46
docker-compose.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
services:
|
||||
python_app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: spritpreise_app
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 500M
|
||||
volumes:
|
||||
- ./:/usr/src/app
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
|
||||
python_server:
|
||||
build:
|
||||
context: ./src/server
|
||||
dockerfile: Dockerfile
|
||||
container_name: spritpreise_python_server
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 500M
|
||||
volumes:
|
||||
- ./src/server:/usr/src/app
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
|
||||
webserver:
|
||||
image: nginx:latest
|
||||
container_name: spritpreise_nginx_webserver
|
||||
volumes:
|
||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./:/opt
|
||||
ports:
|
||||
- "6342:6342"
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
|
||||
networks:
|
||||
app-network:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user