Files
Crm-Monorepo/docker-compose.yml

61 lines
1.3 KiB
YAML

services:
back:
image: git.logidex.ru/fakz9/crm-backend:latest
volumes:
- type: volume
source: app_run
target: /app/run
read_only: false
env_file:
- config/back/.env
restart: unless-stopped
front:
image: git.logidex.ru/fakz9/crm-frontend:latest
env_file:
- config/front/.env
networks:
- appnet
restart: unless-stopped
nginx:
image: nginx:alpine-slim
depends_on:
- back
- front
volumes:
- type: bind
source: ./config/nginx/nginx.conf
target: /etc/nginx/conf.d/default.conf
read_only: true
- type: volume
source: app_run
target: /app/run
read_only: false
- type: bind
source: ./certbot/conf
target: /var/www/certbot
read_only: true
restart: unless-stopped
networks:
- appnet
- proxy
labels:
- "traefik.enable=true"
certbot:
image: certbot/certbot:latest
volumes:
- type: bind
source: ./certbot/www
target: /var/www/certbot
read_only: false
- type: bind
source: ./certbot/conf
target: /etc/letsencrypt
read_only: false
volumes:
app_run:
driver: local
networks:
appnet:
external: false
proxy:
external: true