link_shortener/docker/docker-compose.yml

29 lines
525 B
YAML
Raw Normal View History

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