diff --git a/docker-compose.yml b/docker-compose.yml index 72d7891..a1db8f2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,32 +1,32 @@ services: app: - depends_on: - - db build: context: . dockerfile: Dockerfile - ports: - - "3000:3000" + depends_on: + - db + - s3 restart: unless-stopped + networks: + - nginx_default db: image: postgres:16 + restart: unless-stopped environment: POSTGRES_USER: ${DATABASE_USER} POSTGRES_PASSWORD: ${DATABASE_PASSWORD} POSTGRES_DB: ${DATABASE_NAME} volumes: - ./data/db:/var/lib/postgresql/data - ports: - - "5432:5432" - restart: unless-stopped s3: image: bitnami/minio:2024 + restart: unless-stopped environment: MINIO_ROOT_USER: ${STORAGE_USER} MINIO_ROOT_PASSWORD: ${STORAGE_PASSWORD} MINIO_DEFAULT_BUCKETS: ${STORAGE_NAME} volumes: - ./data/s3:/bitnami/minio/data - ports: - - "9000:9000" - restart: unless-stopped +networks: + nginx_default: + external: true