initial commit
This commit is contained in:
81
docker-compose.yml
Normal file
81
docker-compose.yml
Normal file
@@ -0,0 +1,81 @@
|
||||
networks:
|
||||
trustmeuz:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
pg_data: null
|
||||
rabbitmq: null
|
||||
pycache: null
|
||||
# minio_certs: null
|
||||
minio_data: null
|
||||
|
||||
services:
|
||||
nginx:
|
||||
networks:
|
||||
- trustmeuz
|
||||
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:
|
||||
networks:
|
||||
- trustmeuz
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./docker/Dockerfile.web
|
||||
restart: no
|
||||
command: ${COMMAND:-sh ./entrypoint.sh}
|
||||
environment:
|
||||
- PYTHONPYCACHEPREFIX=/var/cache/pycache
|
||||
volumes:
|
||||
- .:/code
|
||||
- pycache:/var/cache/pycache
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
# - minio
|
||||
|
||||
db:
|
||||
networks:
|
||||
- trustmeuz
|
||||
image: postgres:16
|
||||
restart: no
|
||||
environment:
|
||||
POSTGRES_DB: django
|
||||
POSTGRES_USER: ${DB_USER:-postgres}
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD:-2309}
|
||||
volumes:
|
||||
- pg_data:/var/lib/postgresql/data
|
||||
redis:
|
||||
networks:
|
||||
- trustmeuz
|
||||
restart: no
|
||||
image: redis
|
||||
|
||||
minio:
|
||||
image: minio/minio
|
||||
container_name: minio
|
||||
networks:
|
||||
- trustmeuz
|
||||
expose:
|
||||
- 9000
|
||||
- 9001
|
||||
ports:
|
||||
- "9000:9000"
|
||||
- "9001:9001"
|
||||
volumes:
|
||||
- minio_data:/data
|
||||
environment:
|
||||
MINIO_ROOT_USER: ${STORAGE_ID}
|
||||
MINIO_ROOT_PASSWORD: ${STORAGE_KEY}
|
||||
STORAGE_BUCKET_MEDIA: ${STORAGE_BUCKET_MEDIA}
|
||||
STORAGE_BUCKET_STATIC: ${STORAGE_BUCKET_STATIC}
|
||||
command: server --console-address ":9001" /data
|
||||
# entrypoint: >
|
||||
# sh -c "chmod +x ./resources/layout/minio-setup.sh && fg"
|
||||
Reference in New Issue
Block a user