Files
oficial/docker-compose.yml

79 lines
1.3 KiB
YAML
Raw Normal View History

2021-03-25 21:24:03 -03:00
version: '3'
2022-03-10 15:11:26 -03:00
x-restart: &restart
restart: unless-stopped
2021-03-25 21:24:03 -03:00
services:
web:
2022-03-07 18:08:25 -03:00
profiles:
- app
2021-03-25 21:24:03 -03:00
image: nginx:alpine
2022-03-10 15:11:26 -03:00
container_name: incoviba_web
<<: *restart
2021-03-25 21:24:03 -03:00
ports:
2022-03-07 18:08:25 -03:00
- "8080:80"
2021-03-25 21:24:03 -03:00
volumes:
- .:/code
- ./nginx.conf:/etc/nginx/conf.d/default.conf
php:
2022-03-07 18:08:25 -03:00
profiles:
- app
2021-03-25 21:24:03 -03:00
build: .
2022-03-10 15:11:26 -03:00
container_name: incoviba_php
<<: *restart
2022-03-07 18:08:25 -03:00
env_file:
- .env
- .db.env
2021-03-25 21:24:03 -03:00
volumes:
- .:/code
2023-02-10 06:39:24 +00:00
- ./php-errors.ini:/usr/local/etc/php/conf.d/docker-php-errors.ini
- ./logs:/logs
2021-03-25 21:24:03 -03:00
db:
2022-03-07 18:08:25 -03:00
profiles:
- db
2021-03-25 21:24:03 -03:00
image: mariadb:latest
2022-03-10 15:11:26 -03:00
container_name: incoviba_db
<<: *restart
2022-03-07 12:42:34 +00:00
env_file: .db.env
2021-03-25 21:24:03 -03:00
volumes:
- dbdata:/var/lib/mysql
adminer:
2022-03-07 18:08:25 -03:00
profiles:
- db
2021-03-25 21:24:03 -03:00
image: adminer:latest
2022-03-10 15:11:26 -03:00
container_name: incoviba_adminer
<<: *restart
2021-03-25 21:24:03 -03:00
ports:
2022-03-07 18:08:25 -03:00
- "8083:8080"
2022-03-07 12:42:34 +00:00
env_file: .adminer.env
2021-03-25 21:24:03 -03:00
2022-03-10 15:11:26 -03:00
python:
profiles:
- python
build:
2022-03-10 15:16:55 -03:00
context: .
2022-03-10 15:11:26 -03:00
dockerfile: Python.Dockerfile
container_name: incoviba_python
<<: *restart
2023-02-14 20:47:41 -03:00
logview:
profiles:
- log
build:
context: .
dockerfile: Log.Dockerfile
container_name: incoviba_logview
2023-02-15 18:29:51 -03:00
restart: unless-stopped
2023-02-14 20:47:41 -03:00
environment:
WEB_PORT: '8084'
volumes:
- "./logs:/logs"
ports:
- "8084:80"
2021-03-25 21:24:03 -03:00
volumes:
dbdata: