Files
operadores/docker-compose.yml
2022-03-07 12:43:32 +00:00

71 lines
1.4 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:
- 8001:80
depends_on:
- backend
backend:
container_name: backend
restart: unless-stopped
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:
- 8000:80
depends_on:
- frontend
frontend:
container_name: frontend
restart: unless-stopped
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: