Добавлен Docker

This commit is contained in:
brusnitsyn
2025-12-16 01:06:11 +09:00
parent 98e9f8b52e
commit cb2394ebba
5 changed files with 188 additions and 0 deletions

38
docker-compose.yml Normal file
View File

@@ -0,0 +1,38 @@
services:
#PHP Service
app:
build:
context: .
dockerfile: Dockerfile
image: kartoteka:latest
container_name: kartoteka_app
restart: unless-stopped
tty: true
environment:
SERVICE_NAME: app
SERVICE_TAGS: dev
working_dir: /var/www
volumes:
- ./:/var/www
- ./docker/php.ini:/usr/local/etc/php/conf.d/app.ini
networks:
- app-network
#Nginx Service
webserver:
image: nginx:alpine
container_name: kartoteka_nginx
restart: unless-stopped
tty: true
ports:
- "8090:80"
volumes:
- ./:/var/www
- ./docker/nginx.conf:/etc/nginx/conf.d/default.conf
networks:
- app-network
#Docker Networks
networks:
app-network:
driver: bridge