Files
contabilidad/docker-compose.yml

119 lines
2.2 KiB
YAML
Raw Normal View History

2021-07-27 22:30:10 -04:00
version: '3'
2022-03-25 10:10:43 -03:00
x-restart: &restart
restart: unless-stopped
2021-07-27 22:30:10 -04:00
services:
api:
2021-12-06 22:05:13 -03:00
profiles:
- api
2022-08-08 22:36:04 -04:00
container_name: api
2022-03-25 10:10:43 -03:00
<<: *restart
2021-07-27 22:30:10 -04:00
image: php
build:
context: api
2022-03-25 10:10:43 -03:00
env_file:
- .db.env
2021-12-06 22:05:13 -03:00
- .api.env
2021-12-06 22:08:05 -03:00
- .python.env
2021-07-27 22:30:10 -04:00
volumes:
- ./api/:/app/
2021-11-01 11:00:59 -03:00
- ./api/php.ini:/usr/local/etc/php/conf.d/php.ini
- ./logs/api/php/:/var/log/php/
2022-08-08 22:36:04 -04:00
api_proxy:
2021-12-06 22:05:13 -03:00
profiles:
- api
2022-08-08 22:36:04 -04:00
container_name: api_proxy
2022-03-25 10:10:43 -03:00
<<: *restart
2021-07-27 22:30:10 -04:00
image: nginx
ports:
2021-11-01 11:00:59 -03:00
- "9001:80"
2021-07-27 22:30:10 -04:00
volumes:
- ./api/nginx.conf:/etc/nginx/conf.d/default.conf
2022-03-25 10:10:43 -03:00
- ./logs/api/proxy/:/var/log/nginx/
2021-07-27 22:30:10 -04:00
- ./api/:/app/
db:
2021-12-06 22:05:13 -03:00
profiles:
- api
2022-08-08 22:36:04 -04:00
container_name: db
2022-03-25 10:10:43 -03:00
<<: *restart
2021-07-27 22:30:10 -04:00
image: mariadb
2022-03-25 10:10:43 -03:00
env_file: .db.env
2022-12-20 14:13:05 -03:00
ports:
- "3309:3306"
2021-07-27 22:30:10 -04:00
volumes:
- contabilidad_data:/var/lib/mysql
adminer:
2021-12-06 22:05:13 -03:00
profiles:
- api
2022-08-08 22:36:04 -04:00
container_name: adminer
2022-03-25 10:10:43 -03:00
<<: *restart
2021-07-27 22:30:10 -04:00
image: adminer
ports:
2021-11-01 11:00:59 -03:00
- "9002:8080"
2021-07-27 22:30:10 -04:00
ui:
2021-12-06 22:05:13 -03:00
profiles:
- ui
2022-08-08 22:36:04 -04:00
container_name: ui
2022-03-25 10:10:43 -03:00
<<: *restart
2021-07-27 22:30:10 -04:00
image: php-ui
2021-12-06 22:05:13 -03:00
env_file:
- .api.env
2021-12-20 21:35:47 -03:00
- .env
2021-07-27 22:30:10 -04:00
build:
context: ui
volumes:
- ./ui/:/app/
2021-12-06 22:05:13 -03:00
- ./ui/php.ini:/usr/local/etc/php/conf.d/php.ini
- ./logs/ui/php/:/var/log/php/
2022-08-08 22:36:04 -04:00
ui_proxy:
2021-12-06 22:05:13 -03:00
profiles:
- ui
2022-08-08 22:36:04 -04:00
container_name: ui_proxy
2022-03-25 10:10:43 -03:00
<<: *restart
2021-07-27 22:30:10 -04:00
image: nginx
ports:
2021-11-01 11:00:59 -03:00
- "9000:80"
2021-07-27 22:30:10 -04:00
volumes:
- ./ui/nginx.conf:/etc/nginx/conf.d/default.conf
2022-03-25 10:10:43 -03:00
- ./logs/ui/proxy/:/var/log/nginx/
2021-07-27 22:30:10 -04:00
- ./ui/:/app/
2021-11-01 11:00:59 -03:00
python:
2021-12-06 22:05:13 -03:00
profiles:
- python
2022-08-08 22:36:04 -04:00
container_name: python
2022-03-25 10:10:43 -03:00
<<: *restart
2021-11-01 11:00:59 -03:00
build:
context: ./python
2021-12-06 22:05:13 -03:00
env_file:
2021-12-06 22:08:05 -03:00
- .python.env
2021-12-06 22:05:13 -03:00
ports:
- "9003:5000"
2021-11-01 11:00:59 -03:00
volumes:
- ./python/src/:/app/src/
- ./python/config/:/app/config/
- ./api/public/uploads/pdfs/:/app/data/
- ./logs/python/:/var/log/python/
2022-03-25 10:10:43 -03:00
console:
profiles:
- console
2022-08-08 22:36:04 -04:00
container_name: console
2022-03-25 10:10:43 -03:00
<<: *restart
build:
context: ./console
env_file:
- .api.env
- .console.env
- .db.env
volumes:
- ./console/:/app/
- ./console/php.ini:/usr/local/etc/php/conf.d/php.ini
- ./logs/console/:/var/log/php/
- ./console/crontab:/var/spool/cron/crontabs/root
2021-07-27 22:30:10 -04:00
volumes:
contabilidad_data: