2024-06-20 08:37:21 +00:00
|
|
|
---
|
2024-06-05 20:13:00 +00:00
|
|
|
services:
|
2024-06-17 13:39:11 +00:00
|
|
|
nextjs:
|
2024-06-20 08:37:21 +00:00
|
|
|
image: git.autonomic.zone/autonomic-cooperative/nextload-dev:latest
|
2024-06-05 20:13:00 +00:00
|
|
|
restart: unless-stopped
|
2024-06-20 08:37:21 +00:00
|
|
|
build:
|
|
|
|
context: ./
|
|
|
|
target: dev
|
2024-06-05 20:13:00 +00:00
|
|
|
environment:
|
2024-06-20 08:37:21 +00:00
|
|
|
- "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"
|
2024-06-20 08:41:57 +00:00
|
|
|
volumes:
|
2024-07-11 19:35:24 +00:00
|
|
|
- payload_uploads:/base/media
|
2024-06-23 08:32:21 +00:00
|
|
|
- ./:/base
|
2024-06-20 08:37:21 +00:00
|
|
|
networks:
|
|
|
|
- internal
|
2024-06-05 20:13:00 +00:00
|
|
|
ports:
|
2024-06-17 13:39:11 +00:00
|
|
|
- 3000:3000
|
2024-06-05 20:13:00 +00:00
|
|
|
|
|
|
|
mongo:
|
|
|
|
image: mongo:6.0.5
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- mongo:/data/db
|
|
|
|
command:
|
|
|
|
- --storageEngine=wiredTiger
|
|
|
|
environment:
|
2024-06-20 08:37:21 +00:00
|
|
|
- "MONGO_INITDB_ROOT_USERNAME=mongo"
|
|
|
|
- "MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}"
|
2024-06-05 20:13:00 +00:00
|
|
|
networks:
|
2024-06-20 08:37:21 +00:00
|
|
|
- internal
|
|
|
|
ports:
|
|
|
|
- 27017:27017
|
2024-06-05 20:13:00 +00:00
|
|
|
|
|
|
|
networks:
|
2024-06-20 08:37:21 +00:00
|
|
|
internal:
|
2024-06-05 20:13:00 +00:00
|
|
|
|
2024-06-20 08:37:21 +00:00
|
|
|
volumes:
|
2024-06-05 20:13:00 +00:00
|
|
|
mongo:
|
2024-06-20 08:37:21 +00:00
|
|
|
payload_uploads:
|