webinterface/docker-compose.yml

45 lines
803 B
YAML
Raw Permalink Normal View History

2024-10-29 21:09:13 +01:00
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"
2024-10-29 21:09:13 +01:00
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