Raphael Maenle
85850a9d63
- routes defined in routes.py uses the <path:..> function to catch every non-empty url comming along - request.full_path is used to get the entire url, as <path:> would remove eg GET '?' from the url, which we don't want for the link forwarding. - request.full_path[1:] removes the '/' from the url
29 lines
525 B
YAML
29 lines
525 B
YAML
version: '3'
|
|
services:
|
|
short-server:
|
|
build:
|
|
context: ./short-server
|
|
image: daria/short-server:latest
|
|
container_name: short-server
|
|
environment:
|
|
- FLASK_APP=/home/short-server/server.py
|
|
- FLASK_ENV=development
|
|
volumes:
|
|
- ../:/home/short-server
|
|
ports:
|
|
- "0.0.0.0:8086:8086"
|
|
networks:
|
|
net:
|
|
ipv4_address: '172.25.0.12'
|
|
|
|
volumes:
|
|
database:
|
|
driver: local
|
|
|
|
networks:
|
|
net:
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: 172.25.0.0/24
|