Files
oficial/docker-compose.yml

108 lines
2.0 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:
2023-10-11 09:00:00 -03:00
proxy:
2022-03-07 18:08:25 -03:00
profiles:
- app
2021-03-25 21:24:03 -03:00
image: nginx:alpine
2023-10-11 09:00:00 -03:00
container_name: incoviba_proxy
2022-03-10 15:11:26 -03:00
<<: *restart
2021-03-25 21:24:03 -03:00
ports:
2023-07-24 20:54:30 -04:00
- "${APP_PORT}:80"
2021-03-25 21:24:03 -03:00
volumes:
2023-07-24 20:54:30 -04:00
- ${APP_PATH:-.}/:/code
2021-03-25 21:24:03 -03:00
- ./nginx.conf:/etc/nginx/conf.d/default.conf
2023-07-24 20:54:30 -04:00
- ./logs/proxy:/logs
2021-03-25 21:24:03 -03:00
2023-10-11 09:00:00 -03:00
web:
2022-03-07 18:08:25 -03:00
profiles:
- app
2021-03-25 21:24:03 -03:00
build: .
2023-10-11 09:00:00 -03:00
container_name: incoviba_web
2022-03-10 15:11:26 -03:00
<<: *restart
2022-03-07 18:08:25 -03:00
env_file:
2023-07-24 20:54:30 -04:00
- ${APP_PATH:-.}/.env
# - ${APP_PATH:-.}/.db.env
2023-11-25 00:56:18 -03:00
- ./.key.env
2023-07-24 20:54:30 -04:00
#- ${APP_PATH:-.}/.remote.env
2021-03-25 21:24:03 -03:00
volumes:
2023-07-24 20:54:30 -04:00
- ${APP_PATH:-.}/:/code
- ./logs/php:/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
2023-07-24 20:54:30 -04:00
env_file: ${APP_PATH:-.}/.db.env
2021-03-25 21:24:03 -03:00
volumes:
- dbdata:/var/lib/mysql
2023-07-24 20:54:30 -04:00
- ./incoviba.sql.gz:/docker-entrypoint-initdb.d/incoviba.sql.gz
2023-10-19 18:20:37 -03:00
ports:
- "33060:3306"
2023-06-22 23:15:17 -04:00
networks:
- default
- adminer_network
2021-03-25 21:24:03 -03:00
2023-10-19 20:46:52 -03:00
redis:
profiles:
- cache
image: redis
container_name: incoviba_redis
<<: *restart
env_file: ${APP_PATH:-.}/.redis.env
volumes:
- incoviba_redis:/data
ports:
- "63790:6379"
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:
2023-06-22 23:15:17 -04:00
WEB_URL: 'http://provm.cl:8084'
2023-02-14 20:47:41 -03:00
WEB_PORT: '8084'
volumes:
- "./logs:/logs"
ports:
- "8084:80"
2023-11-25 00:56:18 -03:00
cli:
profiles:
- cli
build:
context: .
dockerfile: CLI.Dockerfile
container_name: incoviba_cli
<<: *restart
env_file:
- ${CLI_PATH:-.}/.env
- ./.key.env
volumes:
- ${CLI_PATH:-.}:/code
- ./logs/cli:/logs
2023-02-14 20:47:41 -03:00
2021-03-25 21:24:03 -03:00
volumes:
2023-07-24 20:54:30 -04:00
dbdata: {}
2023-10-19 20:46:52 -03:00
incoviba_redis: {}
2023-06-22 23:15:17 -04:00
networks:
adminer_network: {}