64 lines
1.2 KiB
YAML
64 lines
1.2 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
api:
|
|
restart: unless-stopped
|
|
image: php
|
|
build:
|
|
context: api
|
|
env_file: .env
|
|
volumes:
|
|
- ./api/:/app/
|
|
- ./api/php.ini:/usr/local/etc/php/conf.d/php.ini
|
|
- ./logs/api/php/:/var/log/php/
|
|
api-proxy:
|
|
restart: unless-stopped
|
|
image: nginx
|
|
ports:
|
|
- "9001:80"
|
|
volumes:
|
|
- ./api/nginx.conf:/etc/nginx/conf.d/default.conf
|
|
- ./logs/api/:/var/log/nginx/
|
|
- ./api/:/app/
|
|
db:
|
|
restart: unless-stopped
|
|
image: mariadb
|
|
env_file: .env
|
|
volumes:
|
|
- contabilidad_data:/var/lib/mysql
|
|
adminer:
|
|
restart: unless-stopped
|
|
image: adminer
|
|
ports:
|
|
- "9002:8080"
|
|
|
|
ui:
|
|
restart: unless-stopped
|
|
image: php-ui
|
|
build:
|
|
context: ui
|
|
volumes:
|
|
- ./ui/:/app/
|
|
ui-proxy:
|
|
restart: unless-stopped
|
|
image: nginx
|
|
ports:
|
|
- "9000:80"
|
|
volumes:
|
|
- ./ui/nginx.conf:/etc/nginx/conf.d/default.conf
|
|
- ./logs/ui/:/var/log/nginx/
|
|
- ./ui/:/app/
|
|
|
|
python:
|
|
restart: unless-stopped
|
|
build:
|
|
context: ./python
|
|
volumes:
|
|
- ./python/src/:/app/src/
|
|
- ./python/config/:/app/config/
|
|
- ./api/public/uploads/pdfs/:/app/data/
|
|
- ./logs/python/:/var/log/python/
|
|
|
|
volumes:
|
|
contabilidad_data:
|