4.8.3: Автодеплой на Synology
Some checks are pending
Build and Push Docker Image / build-and-push (push) Has started running
Some checks are pending
Build and Push Docker Image / build-and-push (push) Has started running
This commit is contained in:
27
docker-compose.prod.yml
Normal file
27
docker-compose.prod.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
version: '3.8'
|
||||
|
||||
# Production конфигурация для Synology
|
||||
# Использует образ из registry вместо локальной сборки
|
||||
# База данных postgres запущена отдельно (не в этом compose)
|
||||
|
||||
services:
|
||||
play-life:
|
||||
image: dungeonsiege.synology.me/poignatov/play-life:latest
|
||||
container_name: play-life-prod
|
||||
ports:
|
||||
- "3080:80"
|
||||
volumes:
|
||||
- /volume1/docker/play-life/uploads:/app/uploads:rw
|
||||
restart: always
|
||||
env_file:
|
||||
- .env
|
||||
# Подключаемся к общей сети playlife-net
|
||||
# Перед первым запуском нужно создать сеть и подключить postgres:
|
||||
# docker network create playlife-net
|
||||
# docker network connect playlife-net postgres1
|
||||
networks:
|
||||
- playlife-net
|
||||
|
||||
networks:
|
||||
playlife-net:
|
||||
external: true
|
||||
Reference in New Issue
Block a user