add minio and file upload
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
version: '3.4'
|
||||
|
||||
services:
|
||||
main-db:
|
||||
image: postgres:14.1-alpine
|
||||
@@ -15,26 +13,45 @@ services:
|
||||
- main-db-storage:/var/lib/postgresql/data
|
||||
networks:
|
||||
- myNetwork
|
||||
|
||||
main-server:
|
||||
image: main-app
|
||||
restart: unless-stopped
|
||||
container_name: "main-app"
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "5050:5050"
|
||||
volumes:
|
||||
- ./public:/app/public
|
||||
depends_on:
|
||||
- main-db
|
||||
networks:
|
||||
- myNetwork
|
||||
image: main-app
|
||||
restart: unless-stopped
|
||||
container_name: "main-app"
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "5050:5050"
|
||||
volumes:
|
||||
- ./public:/app/public
|
||||
depends_on:
|
||||
- main-db
|
||||
- main-minio
|
||||
networks:
|
||||
- myNetwork
|
||||
|
||||
main-minio:
|
||||
container_name: "main-minio"
|
||||
build:
|
||||
context: .
|
||||
dockerfile: deployment/Dockerfile.minio
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- MINIO_ROOT_USER=TX3H1H6XTS288QW07S8Z
|
||||
- MINIO_ROOT_PASSWORD=FWWspiI4n4LMknnxYCmzFTCY1ObkGiuaU9SNwOCU
|
||||
ports:
|
||||
- '9003:9000'
|
||||
- '9093:9093'
|
||||
volumes:
|
||||
- main-minio-storage:/storage
|
||||
networks:
|
||||
- myNetwork
|
||||
|
||||
volumes:
|
||||
main-db-storage:
|
||||
main-db-storage:
|
||||
main-minio-storage:
|
||||
|
||||
networks:
|
||||
myNetwork:
|
||||
driver: bridge
|
||||
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user