initialize project structure with Docker, Nginx, and environment configuration
This commit is contained in:
44
docker-compose.yml
Normal file
44
docker-compose.yml
Normal file
@ -0,0 +1,44 @@
|
||||
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
|
||||
depends_on:
|
||||
- back
|
||||
env_file:
|
||||
- config/front/.env
|
||||
networks:
|
||||
- appnet
|
||||
restart: unless-stopped
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
depends_on:
|
||||
- back
|
||||
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
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- appnet
|
||||
volumes:
|
||||
app_run:
|
||||
driver: local
|
||||
networks:
|
||||
appnet:
|
||||
Reference in New Issue
Block a user