first commit
This commit is contained in:
42
docker-compose.yml
Normal file
42
docker-compose.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
version: '3.9'
|
||||
|
||||
services:
|
||||
haproxy-configurator:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: haproxy-configurator
|
||||
restart: unless-stopped
|
||||
|
||||
ports:
|
||||
- "15000:5000"
|
||||
- "7780:80"
|
||||
- "7443:443"
|
||||
- "8404:8404"
|
||||
|
||||
volumes:
|
||||
- ./config:/app/config
|
||||
- ./haproxy:/etc/haproxy
|
||||
- ./logs:/var/log
|
||||
|
||||
environment:
|
||||
- FLASK_ENV=production
|
||||
- FLASK_APP=app.py
|
||||
- PYTHONUNBUFFERED=1
|
||||
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- SYS_ADMIN
|
||||
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
networks:
|
||||
- haproxy-net
|
||||
|
||||
networks:
|
||||
haproxy-net:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user