nextload/docker-compose.yml
tobias de5e8ab560
All checks were successful
continuous-integration/drone/push Build is passing
Create dev script
2024-06-20 10:37:21 +02:00

49 lines
1.1 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:
# Must be changed for dev as it is not standalone
#- payload_uploads:/runner/.next/standalone/.next/media
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: