Docker
This commit is contained in:
68
docker-compose.yml
Normal file
68
docker-compose.yml
Normal file
@ -0,0 +1,68 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
backend-proxy:
|
||||
container_name: backend_proxy
|
||||
image: nginx
|
||||
volumes:
|
||||
- ./api/:/app/
|
||||
- ./api/nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
- ./logs/api/:/var/log/nginx/
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 8081:80
|
||||
depends_on:
|
||||
- backend
|
||||
backend:
|
||||
container_name: backend
|
||||
image: php
|
||||
build:
|
||||
context: ./api
|
||||
dockerfile: PHP.Dockerfile
|
||||
env_file: .db.env
|
||||
volumes:
|
||||
- ./api/:/app/
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
frontend-proxy:
|
||||
container_name: frontend_proxy
|
||||
image: nginx
|
||||
volumes:
|
||||
- ./ui/:/app/
|
||||
- ./ui/nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
- ./logs/ui/:/var/log/nginx/
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 8080:80
|
||||
depends_on:
|
||||
- frontend
|
||||
frontend:
|
||||
container_name: frontend
|
||||
image: php:ui
|
||||
build:
|
||||
context: ./ui
|
||||
dockerfile: PHP.Dockerfile
|
||||
env_file: .ui.env
|
||||
volumes:
|
||||
- ./ui/:/app/
|
||||
|
||||
db:
|
||||
image: mariadb
|
||||
volumes:
|
||||
- database:/var/lib/mysql
|
||||
env_file: .db.env
|
||||
adminer:
|
||||
image: adminer
|
||||
environment:
|
||||
ADMINER_PLUGINS: "dump-json edit-foreign enum-option json-column"
|
||||
ADMINER_DESIGN: "dracula"
|
||||
volumes:
|
||||
- ./adminer/plugins-enabled/:/var/www/html/plugins-enabled/
|
||||
ports:
|
||||
- 8082:8080
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
volumes:
|
||||
database:
|
Reference in New Issue
Block a user