Sorta-working local docker-compose setup
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
7cecad646a
commit
3f42e392fe
@ -1,3 +1,7 @@
|
||||
NAME=nextload
|
||||
|
||||
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
|
@ -1,44 +1,44 @@
|
||||
services:
|
||||
astro:
|
||||
container_name: ${NAME}-astro
|
||||
image: git.autonomic.zone/autonomic-cooperative/astro-payload-test-astro:latest
|
||||
restart: unless-stopped
|
||||
build:
|
||||
context: astro
|
||||
command: ["yarn", "dev"]
|
||||
environment:
|
||||
DEV: 1
|
||||
networks:
|
||||
- front
|
||||
volumes:
|
||||
- ./astro:/base
|
||||
- /base/node_modules/
|
||||
ports:
|
||||
- 3000:3000
|
||||
depends_on:
|
||||
- payload
|
||||
# astro:
|
||||
# container_name: ${NAME}-astro
|
||||
# image: git.autonomic.zone/autonomic-cooperative/astro-payload-test-astro:latest
|
||||
# restart: unless-stopped
|
||||
# build:
|
||||
# context: astro
|
||||
# command: ["yarn", "dev"]
|
||||
# environment:
|
||||
# DEV: 1
|
||||
# networks:
|
||||
# - front
|
||||
# volumes:
|
||||
# - ./astro:/base
|
||||
# - /base/node_modules/
|
||||
# ports:
|
||||
# - 3000:3000
|
||||
# depends_on:
|
||||
# - 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
|
||||
restart: unless-stopped
|
||||
build:
|
||||
context: payload
|
||||
target: dev
|
||||
# build:
|
||||
# context: payload
|
||||
# target: dev
|
||||
environment:
|
||||
DEV: 1
|
||||
NAME: ${NAME}
|
||||
NODE_ENV: development
|
||||
PAYLOAD_URL: "http://localhost:${PAYLOAD_PORT}"
|
||||
PAYLOAD_PORT: ${PAYLOAD_PORT}
|
||||
# PAYLOAD_URL: "http://localhost:${PAYLOAD_PORT}"
|
||||
# PAYLOAD_PORT: ${PAYLOAD_PORT}
|
||||
PAYLOAD_SECRET: ${PAYLOAD_SECRET}
|
||||
MONGODB_URI: "mongodb://$MONGODB_USER:$MONGODB_PASSWORD@mongo:27017"
|
||||
volumes:
|
||||
- ./payload/src:/base/src
|
||||
# - ./astro/src/types.ts:/types.ts
|
||||
- payload_media:/base/src/media
|
||||
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:
|
||||
- ${PAYLOAD_PORT}:${PAYLOAD_PORT}
|
||||
- 3000:3000
|
||||
networks:
|
||||
- front
|
||||
- back
|
||||
@ -58,8 +58,6 @@ services:
|
||||
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD}
|
||||
networks:
|
||||
- back
|
||||
ports:
|
||||
- 27017:27017
|
||||
|
||||
networks:
|
||||
front:
|
||||
|
Loading…
Reference in New Issue
Block a user