Files
oficial/docker-compose.yml
Juan Pablo Vial b212381bb7 Cli
2023-06-22 23:15:17 -04:00

87 lines
1.5 KiB
YAML

version: '3'
x-restart: &restart
restart: unless-stopped
services:
web:
profiles:
- app
image: nginx:alpine
container_name: incoviba_web
<<: *restart
ports:
- "8080:80"
volumes:
- .:/code
- ./nginx.conf:/etc/nginx/conf.d/default.conf
php:
profiles:
- app
build: .
container_name: incoviba_php
<<: *restart
env_file:
- .env
- .db.env
- .remote.env
volumes:
- .:/code
- ./php-errors.ini:/usr/local/etc/php/conf.d/docker-php-errors.ini
- ./logs:/logs
db:
profiles:
- db
image: mariadb:latest
container_name: incoviba_db
<<: *restart
env_file: .db.env
volumes:
- dbdata:/var/lib/mysql
networks:
- default
- adminer_network
adminer:
profiles:
- db
image: adminer:latest
container_name: incoviba_adminer
<<: *restart
ports:
- "8083:8080"
env_file: .adminer.env
python:
profiles:
- python
build:
context: .
dockerfile: Python.Dockerfile
container_name: incoviba_python
<<: *restart
logview:
profiles:
- log
build:
context: .
dockerfile: Log.Dockerfile
container_name: incoviba_logview
restart: unless-stopped
environment:
WEB_URL: 'http://provm.cl:8084'
WEB_PORT: '8084'
volumes:
- "./logs:/logs"
ports:
- "8084:80"
volumes:
dbdata:
networks:
adminer_network: {}