forked from SoDOff-Project/sodoff

- change docker config - by default include source in docker image for simple debug (can be disabled via uncoment section in Dockerfile) - fix/improve network config in docker-compose
26 lines
725 B
YAML
26 lines
725 B
YAML
version: '3.8'
|
|
services:
|
|
sodoff:
|
|
build:
|
|
context: .
|
|
dockerfile: src/Dockerfile
|
|
# ports:
|
|
# - 5000:5000
|
|
networks:
|
|
sodoff_network:
|
|
# use static ip address for nginx proxy configuration
|
|
# - if run multiple instances of this docker, each instance should use unique address
|
|
# - if do not use proxy, port mapping as above should be enough
|
|
ipv4_address: 172.16.99.10
|
|
|
|
networks:
|
|
sodoff_network:
|
|
name: sodoff_network
|
|
# bellow network configuration should be put in at least one file
|
|
# - but it may be in many or all
|
|
# - without it it will work like `external: true`
|
|
driver: bridge
|
|
ipam:
|
|
config:
|
|
- subnet: "172.16.99.0/24"
|