Skip to content
Snippets Groups Projects
Commit 1ebfb216 authored by Florent Gluck's avatar Florent Gluck
Browse files

added docker compose solution to lab9

parent fe46ec01
No related branches found
No related tags found
No related merge requests found
No preview for this file type
networks:
web-net:
proc-net:
services:
web:
# Image based on web/Dockerfile
build: web
restart: always
networks:
- web-net
hostname: web
ports:
- 3000:80
# Bind mount
volumes:
- ./data:/data
logger:
# Image based on logger/Dockerfile
build: logger
restart: always
networks:
- proc-net
hostname: logger
ports:
- 2000:12345
md2html:
# Image based on md2html/Dockerfile
build: md2html
restart: no
networks:
- web-net
- proc-net
hostname: md2html
# Bind mount
volumes:
- ./data:/data
#!/bin/bash
# build and run web and logger services
docker compose up -d web logger
# wait some time...
sleep 5
# build and run md2html
docker compose up md2html
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment