51 lines
1.0 KiB
YAML
51 lines
1.0 KiB
YAML
services:
|
|
nextjs:
|
|
image: git.autonomic.zone/autonomic-cooperative/nextload:latest
|
|
container_name: ${NAME}-nextjs
|
|
restart: unless-stopped
|
|
# build:
|
|
# context: payload
|
|
# target: dev
|
|
environment:
|
|
DEV: 1
|
|
NAME: ${NAME}
|
|
PAYLOAD_SECRET: ${PAYLOAD_SECRET}
|
|
NODE_ENV: development
|
|
MONGODB_URI: "mongodb://$MONGODB_USER:$MONGODB_PASSWORD@$MONGODB_HOST:27017"
|
|
# volumes:
|
|
# - ./payload/src:/base/src
|
|
# # - ./astro/src/types.ts:/types.ts
|
|
# - payload_media:/base/src/media
|
|
ports:
|
|
- 3000:3000
|
|
networks:
|
|
- front
|
|
- back
|
|
depends_on:
|
|
- mongo
|
|
|
|
mongo:
|
|
container_name: ${NAME}-mongo
|
|
image: mongo:6.0.5
|
|
restart: unless-stopped
|
|
ports:
|
|
- 27017:27017
|
|
volumes:
|
|
- mongo:/data/db
|
|
command:
|
|
- --storageEngine=wiredTiger
|
|
environment:
|
|
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USER}
|
|
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD}
|
|
|
|
networks:
|
|
- back
|
|
|
|
networks:
|
|
front:
|
|
back:
|
|
|
|
volumes:
|
|
mongo:
|
|
payload_media:
|