Initial commit for iiEasy: all files included
This commit is contained in:
36
docker-compose.yml
Normal file
36
docker-compose.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
# БЭКЕНД: Strapi (находится в подпапке iiEasy)
|
||||
strapi:
|
||||
container_name: iieasy_backend
|
||||
build:
|
||||
context: ./iiEasy
|
||||
dockerfile: Dockerfile
|
||||
restart: always
|
||||
ports:
|
||||
- "1340:1340"
|
||||
# Пробрасываем папку с загрузками, чтобы картинки не удалились при обновлении контейнера
|
||||
volumes:
|
||||
- ./iiEasy/public/uploads:/opt/app/public/uploads
|
||||
- ./iiEasy/.tmp:/opt/app/.tmp
|
||||
env_file:
|
||||
- ./iiEasy/.env
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
|
||||
# ФРОНТЕНД: Сайт с Tailwind (находится в текущей папке)
|
||||
frontend:
|
||||
container_name: iieasy_frontend
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
restart: always
|
||||
ports:
|
||||
- "85:80" # Твой запрос: заходим через 85 порт
|
||||
depends_on:
|
||||
- strapi
|
||||
|
||||
networks:
|
||||
default:
|
||||
name: iieasy_network
|
||||
Reference in New Issue
Block a user