Files
operadores/docker-compose.yml
2021-08-10 15:48:44 -04:00

69 lines
1.3 KiB
YAML

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: