webinterface/docker-compose.yml

45 lines
803 B
YAML

services:
app:
container_name: logic
build: ./server
env_file:
- ./.env.server
depends_on:
- mongo
networks:
internal_network:
ipv4_address: 172.18.0.2
mongo:
image: mongo:5
container_name: database
volumes:
- mongo-data:/data/db
ports:
- "27017:27017"
networks:
internal_network:
ipv4_address: 172.18.0.3
client:
image: nginx:alpine
container_name: webserver
volumes:
- ./client:/usr/share/nginx/html
- ./nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "8015:80"
networks:
internal_network:
ipv4_address: 172.18.0.4
volumes:
mongo-data:
networks:
internal_network:
driver: bridge
ipam:
config:
- subnet: 172.18.0.0/16