storage yaratildi
This commit is contained in:
72
docker-compose.yml
Normal file
72
docker-compose.yml
Normal file
@@ -0,0 +1,72 @@
|
||||
networks:
|
||||
service:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
pg_data: null
|
||||
pycache: null
|
||||
minio_data: null
|
||||
|
||||
services:
|
||||
nginx:
|
||||
networks:
|
||||
- service
|
||||
ports:
|
||||
- ${PORT:-8001}:80
|
||||
volumes:
|
||||
- ./resources/layout/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./resources/:/usr/share/nginx/html/resources/
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./docker/Dockerfile.nginx
|
||||
depends_on:
|
||||
- web
|
||||
web:
|
||||
env_file:
|
||||
- .env
|
||||
networks:
|
||||
- service
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./docker/Dockerfile.web
|
||||
restart: always
|
||||
environment:
|
||||
- PYTHONPYCACHEPREFIX=/var/cache/pycache
|
||||
- SCRIPT=${SCRIPT:-entrypoint.sh}
|
||||
volumes:
|
||||
- .:/code
|
||||
- pycache:/var/cache/pycache
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
db:
|
||||
networks:
|
||||
- service
|
||||
image: postgres:16
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_DB: ${DB_NAME:-django}
|
||||
POSTGRES_USER: ${DB_USER:-postgres}
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD:-2309}
|
||||
volumes:
|
||||
- pg_data:/var/lib/postgresql/data
|
||||
redis:
|
||||
networks:
|
||||
- service
|
||||
restart: always
|
||||
image: redis
|
||||
|
||||
minio:
|
||||
image: minio/minio
|
||||
networks:
|
||||
- service
|
||||
ports:
|
||||
- "9000:9000"
|
||||
- "9091:9001"
|
||||
volumes:
|
||||
- minio_data:/data
|
||||
environment:
|
||||
MINIO_ROOT_USER: ${STORAGE_ID:-minioadmin}
|
||||
MINIO_ROOT_PASSWORD: ${STORAGE_KEY:-minioadmin123}
|
||||
command: server /data --console-address ":9001"
|
||||
restart: always
|
||||
Reference in New Issue
Block a user