mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
compose the basics
This commit is contained in:
parent
99d5edbb94
commit
c97168fe00
4 changed files with 62 additions and 3 deletions
24
docker/docker-compose.yml
Normal file
24
docker/docker-compose.yml
Normal 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:
|
||||
Loading…
Add table
Add a link
Reference in a new issue