compose the basics

This commit is contained in:
nora 2022-09-03 21:03:33 +02:00
parent 99d5edbb94
commit c97168fe00
4 changed files with 62 additions and 3 deletions

24
docker/docker-compose.yml Normal file
View file

@ -0,0 +1,24 @@
version: '3.3'
services:
nginx:
container_name: nginx-c
restart: always
image: nginx:latest
ports:
- "80:80"
volumes:
- "${NGINX_CONF_PATH}:/etc/nginx/nginx.conf:ro"
networks:
- internal
registry:
container_name: registry-c
restart: always
image: registry:2
volumes:
- "${REGISTRY_CONF_DIR}/config.yml:/etc/docker/registry/config.yml"
- "/var/lib/docker/registry:/var/lib/registry"
networks:
- internal
networks:
internal: