Добавил деплой в продакшен через docker
- Создание образа - Запись в реестре - Развертывание из реестра на сервере
This commit is contained in:
3
docker/Dockerfile.nginx.prod
Normal file
3
docker/Dockerfile.nginx.prod
Normal file
@ -0,0 +1,3 @@
|
||||
FROM nginx:stable
|
||||
|
||||
COPY output_prod /usr/share/nginx/html
|
11
docker/docker-compose.prod.yml
Normal file
11
docker/docker-compose.prod.yml
Normal file
@ -0,0 +1,11 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
nginx:
|
||||
image: '${NGINX_IMAGE}'
|
||||
# user: '${CURRENT_UID}:${CURRENT_GID}'
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- '${WEB_SERVER_PORT}:80'
|
||||
env_file:
|
||||
- .env
|
Reference in New Issue
Block a user