nextload/docker-compose.yml

51 lines
1.0 KiB
YAML
Raw Normal View History

2024-06-05 20:13:00 +00:00
services:
2024-06-17 13:39:11 +00:00
nextjs:
image: git.autonomic.zone/autonomic-cooperative/nextload:latest
container_name: ${NAME}-nextjs
2024-06-05 20:13:00 +00:00
restart: unless-stopped
2024-06-17 13:39:11 +00:00
# build:
# context: payload
# target: dev
2024-06-05 20:13:00 +00:00
environment:
DEV: 1
NAME: ${NAME}
2024-06-17 13:49:03 +00:00
PAYLOAD_SECRET: ${PAYLOAD_SECRET}
2024-06-05 20:13:00 +00:00
NODE_ENV: development
2024-06-17 13:39:11 +00:00
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
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
networks:
- front
- back
depends_on:
- mongo
mongo:
container_name: ${NAME}-mongo
image: mongo:6.0.5
restart: unless-stopped
2024-06-17 13:39:11 +00:00
ports:
- 27017:27017
2024-06-05 20:13:00 +00:00
volumes:
- mongo:/data/db
command:
- --storageEngine=wiredTiger
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD}
2024-06-17 13:39:11 +00:00
2024-06-05 20:13:00 +00:00
networks:
- back
networks:
front:
back:
volumes:
mongo:
payload_media: