49 lines
1.0 KiB
YAML
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:
|
|
- /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:
|