fix: adjust docker-compose for Dokploy with Traefik
This commit is contained in:
@@ -3,41 +3,56 @@ services:
|
|||||||
image: postgres:15-alpine
|
image: postgres:15-alpine
|
||||||
container_name: portal_transparencia_db
|
container_name: portal_transparencia_db
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
||||||
POSTGRES_PASSWORD: password
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
|
||||||
POSTGRES_DB: portal_db
|
POSTGRES_DB: ${POSTGRES_DB:-portal_db}
|
||||||
ports:
|
|
||||||
- "5433:5432"
|
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
minio:
|
minio:
|
||||||
image: minio/minio
|
image: minio/minio
|
||||||
container_name: portal_transparencia_minio
|
container_name: portal_transparencia_minio
|
||||||
ports:
|
|
||||||
- "9000:9000"
|
|
||||||
- "9001:9001"
|
|
||||||
environment:
|
environment:
|
||||||
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-admin}
|
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-admin}
|
||||||
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-password123}
|
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-password123}
|
||||||
command: server /data --console-address ":9001"
|
command: server /data --console-address ":9001"
|
||||||
volumes:
|
volumes:
|
||||||
- minio_data:/data
|
- minio_data:/data
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
app:
|
app:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
container_name: portal_transparencia_app
|
container_name: portal_transparencia_app
|
||||||
ports:
|
|
||||||
- "3000:3000"
|
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgres://postgres:password@postgres:5432/portal_db
|
DATABASE_URL: postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-password}@postgres:5432/${POSTGRES_DB:-portal_db}
|
||||||
NEXT_PUBLIC_APP_URL: http://localhost:3000
|
MINIO_ENDPOINT: minio
|
||||||
|
MINIO_PORT: "9000"
|
||||||
|
MINIO_ACCESS_KEY: ${MINIO_ROOT_USER:-admin}
|
||||||
|
MINIO_SECRET_KEY: ${MINIO_ROOT_PASSWORD:-password123}
|
||||||
|
MINIO_USE_SSL: "false"
|
||||||
|
MINIO_BUCKET: ${MINIO_BUCKET:-documents}
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
- minio
|
- minio
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
- dokploy-network
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
minio_data:
|
minio_data:
|
||||||
|
|
||||||
|
|
||||||
|
networks:
|
||||||
|
internal:
|
||||||
|
driver: bridge
|
||||||
|
dokploy-network:
|
||||||
|
external: true
|
||||||
|
|||||||
Reference in New Issue
Block a user