Files
oficial/docker-compose.yml

100 lines
2.0 KiB
YAML
Raw Normal View History

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
2024-02-10 10:37:45 -03:00
restart: unless-stopped
2021-03-25 21:24:03 -03:00
ports:
2023-07-24 20:54:30 -04:00
- "${APP_PORT}:80"
2024-10-31 16:31:42 -03:00
- "${APP_SSL_PORT}:443"
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: .
image: php:incoviba
2023-10-11 09:00:00 -03:00
container_name: incoviba_web
2024-02-10 10:37:45 -03:00
restart: unless-stopped
2022-03-07 18:08:25 -03:00
env_file:
2023-07-24 20:54:30 -04:00
- ${APP_PATH:-.}/.env
2023-11-25 00:56:18 -03:00
- ./.key.env
2021-03-25 21:24:03 -03:00
volumes:
2023-07-24 20:54:30 -04:00
- ${APP_PATH:-.}/:/code
- ${APP_PATH:-.}/fcgi.conf:/usr/local/etc/php-fpm.d/fcgi.conf
- ${APP_PATH:-.}/fcgi.conf:/usr/local/etc/php-fpm.d/www-extra.conf
2023-07-24 20:54:30 -04:00
- ./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
2024-02-10 10:37:45 -03:00
restart: unless-stopped
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-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
2024-02-10 10:37:45 -03:00
restart: unless-stopped
2023-10-19 20:46:52 -03:00
env_file: ${APP_PATH:-.}/.redis.env
volumes:
- incoviba_redis:/data
ports:
- "63790:6379"
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:
2024-02-10 10:37:45 -03:00
- ./logs:/logs
2023-02-14 20:47:41 -03:00
ports:
- "8084:80"
2023-11-25 00:56:18 -03:00
cli:
profiles:
- cli
build:
context: .
dockerfile: CLI.Dockerfile
image: php:incoviba-cli
2023-11-25 00:56:18 -03:00
container_name: incoviba_cli
2024-02-10 10:37:45 -03:00
restart: unless-stopped
entrypoint: [ "/code/entrypoint" ]
2023-11-25 00:56:18 -03:00
env_file:
- ${CLI_PATH:-.}/.env
- ./.key.env
volumes:
- ${CLI_PATH:-.}:/code
- ./logs/cli:/logs
- ${CLI_PATH:-.}/crontab:/var/spool/cron/crontabs/root
- /etc/timezone:/etc/timezone:ro
2024-03-20 13:46:56 -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: {}