Compare commits

...

1 Commits

Author SHA1 Message Date
3wc
3f42e392fe Sorta-working local docker-compose setup
Some checks failed
continuous-integration/drone/push Build is failing
2024-06-16 11:40:07 -06:00
2 changed files with 37 additions and 35 deletions

View File

@ -1,3 +1,7 @@
NAME=nextload
PAYLOAD_SECRET=jawliejfilwajefSEANlawefawfewag349jwgo3gj4w PAYLOAD_SECRET=jawliejfilwajefSEANlawefawfewag349jwgo3gj4w
MONGODB_URI=mongodb://127.0.0.1:27017/next-payload-3 MONGODB_USER=mongo
MONGODB_PASSWORD=mongo
MONGODB_HOST=mongo
# POSTGRES_URI=postgresql://postgres:password123@127.0.0.1:5432/next-payload-3 # POSTGRES_URI=postgresql://postgres:password123@127.0.0.1:5432/next-payload-3

View File

@ -1,44 +1,44 @@
services: services:
astro: # astro:
container_name: ${NAME}-astro # container_name: ${NAME}-astro
image: git.autonomic.zone/autonomic-cooperative/astro-payload-test-astro:latest # image: git.autonomic.zone/autonomic-cooperative/astro-payload-test-astro:latest
restart: unless-stopped # restart: unless-stopped
build: # build:
context: astro # context: astro
command: ["yarn", "dev"] # command: ["yarn", "dev"]
environment: # environment:
DEV: 1 # DEV: 1
networks: # networks:
- front # - front
volumes: # volumes:
- ./astro:/base # - ./astro:/base
- /base/node_modules/ # - /base/node_modules/
ports: # ports:
- 3000:3000 # - 3000:3000
depends_on: # depends_on:
- payload # - payload
payload: payload:
image: git.autonomic.zone/autonomic-cooperative/astro-payload-test-payload-dev:latest image: git.autonomic.zone/autonomic-cooperative/nextload:latest
container_name: ${NAME}-payload container_name: ${NAME}-payload
restart: unless-stopped restart: unless-stopped
build: # build:
context: payload # context: payload
target: dev # target: dev
environment: environment:
DEV: 1 DEV: 1
NAME: ${NAME} NAME: ${NAME}
NODE_ENV: development NODE_ENV: development
PAYLOAD_URL: "http://localhost:${PAYLOAD_PORT}" # PAYLOAD_URL: "http://localhost:${PAYLOAD_PORT}"
PAYLOAD_PORT: ${PAYLOAD_PORT} # PAYLOAD_PORT: ${PAYLOAD_PORT}
PAYLOAD_SECRET: ${PAYLOAD_SECRET} PAYLOAD_SECRET: ${PAYLOAD_SECRET}
MONGODB_URI: "mongodb://$MONGODB_USER:$MONGODB_PASSWORD@mongo:27017" MONGODB_URI: "mongodb://$MONGODB_USER:$MONGODB_PASSWORD@$MONGODB_HOST:27017"
volumes: # volumes:
- ./payload/src:/base/src # - ./payload/src:/base/src
# - ./astro/src/types.ts:/types.ts # # - ./astro/src/types.ts:/types.ts
- payload_media:/base/src/media # - payload_media:/base/src/media
ports: ports:
- ${PAYLOAD_PORT}:${PAYLOAD_PORT} - 3000:3000
networks: networks:
- front - front
- back - back
@ -58,8 +58,6 @@ services:
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD} MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD}
networks: networks:
- back - back
ports:
- 27017:27017
networks: networks:
front: front: