MyFTP/docker-compose.yaml
minhtrannhat fa544ac1fb
feat: containerized everything
- UDP server will now bound to all interfaces
- Added instructions for docker setup
2023-11-27 04:24:47 -05:00

36 lines
589 B
YAML

version: "3"
services:
ftp_server:
build:
context: .
dockerfile: Dockerfile.server
networks:
- mynetwork
command:
- sh
- -c
- >
sleep 10 &&
echo "My IP: $(hostname -i)" &&
tail -f /dev/null
image: ftp_server:latest
ftp_client:
build:
context: .
dockerfile: Dockerfile.client
networks:
- mynetwork
command:
- sh
- -c
- >
sleep 10 &&
echo "My IP: $(hostname -i)" &&
tail -f /dev/null
image: ftp_client:latest
networks:
mynetwork: