nextload/docker-compose.yml
tobias e060d942f0
All checks were successful
continuous-integration/drone/push Build is passing
Fix payload_uploads volume?
2024-07-11 21:00:30 +02:00

49 lines
1.0 KiB
YAML

---
services:
nextjs:
image: git.autonomic.zone/autonomic-cooperative/nextload-dev:latest
restart: unless-stopped
build:
context: ./
target: dev
environment:
- "NAME=${STACK_NAME}"
- "PAYLOAD_SECRET=${PAYLOAD_SECRET}"
- "MONGODB_USER=mongo"
- "MONGODB_HOST=${STACK_NAME}_mongo"
- "MONGODB_PORT=27017"
- "MONGODB_PASSWORD=${MONGO_PASSWORD}"
- "REPOSITORY"
- "PORT=3000"
- "HOSTNAME=0.0.0.0"
- "MONGODB_URI=mongodb://${MONGO_USER}:${MONGO_PASSWORD}@mongo:27017"
volumes:
- payload_uploads:/base/media
- ./:/base
networks:
- internal
ports:
- 3000:3000
mongo:
image: mongo:6.0.5
restart: unless-stopped
volumes:
- mongo:/data/db
command:
- --storageEngine=wiredTiger
environment:
- "MONGO_INITDB_ROOT_USERNAME=mongo"
- "MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}"
networks:
- internal
ports:
- 27017:27017
networks:
internal:
volumes:
mongo:
payload_uploads: