generated from autonomic-cooperative/astro-payload-template
Make local development setup work 🎊
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Closes #1
This commit is contained in:
parent
f5171cc519
commit
ab67ee32e0
5
.env
5
.env
@ -4,8 +4,7 @@ PAYLOAD_HOST=payload:3001
|
|||||||
PAYLOAD_URL=http://localhost:3001
|
PAYLOAD_URL=http://localhost:3001
|
||||||
PAYLOAD_PORT=3001
|
PAYLOAD_PORT=3001
|
||||||
PAYLOAD_SECRET=supersecretkey
|
PAYLOAD_SECRET=supersecretkey
|
||||||
MONGODB_URI=mongodb://payload:test@mongo:27017
|
|
||||||
MONGODB_USER=payload
|
MONGODB_USER=payload
|
||||||
MONGODB_PW=test
|
MONGODB_PASSWORD=password
|
||||||
TOKEN=supersecrettoken
|
TOKEN=supersecrettoken
|
||||||
REPOSITORY=mooxl/astroad
|
REPOSITORY=mooxl/astroad
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
services:
|
services:
|
||||||
astro:
|
astro:
|
||||||
container_name: ${NAME}-astro
|
container_name: ${NAME}-astro
|
||||||
|
image: git.autonomic.zone/autonomic-cooperative/astro-payload-test-astro:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
build:
|
build:
|
||||||
context: astro
|
context: astro
|
||||||
target: de
|
command: ["yarn", "dev"]
|
||||||
networks:
|
networks:
|
||||||
- front
|
- front
|
||||||
volumes:
|
volumes:
|
||||||
@ -16,6 +17,7 @@ services:
|
|||||||
- payload
|
- payload
|
||||||
|
|
||||||
payload:
|
payload:
|
||||||
|
image: git.autonomic.zone/autonomic-cooperative/astro-payload-test-payload:latest
|
||||||
container_name: ${NAME}-payload
|
container_name: ${NAME}-payload
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
build:
|
build:
|
||||||
@ -25,7 +27,10 @@ services:
|
|||||||
PAYLOAD_URL: ${PAYLOAD_URL}
|
PAYLOAD_URL: ${PAYLOAD_URL}
|
||||||
PAYLOAD_PORT: ${PAYLOAD_PORT}
|
PAYLOAD_PORT: ${PAYLOAD_PORT}
|
||||||
PAYLOAD_SECRET: ${PAYLOAD_SECRET}
|
PAYLOAD_SECRET: ${PAYLOAD_SECRET}
|
||||||
MONGODB_URI: ${MONGODB_URI}
|
MONGODB_USER:
|
||||||
|
MONGODB_HOST: mongo
|
||||||
|
MONGODB_PASSWORD:
|
||||||
|
MONGODB_PORT: 27017
|
||||||
TOKEN: ${TOKEN}
|
TOKEN: ${TOKEN}
|
||||||
volumes:
|
volumes:
|
||||||
- ./payload/src:/base/src
|
- ./payload/src:/base/src
|
||||||
@ -43,12 +48,12 @@ services:
|
|||||||
image: mongo:6.0.5
|
image: mongo:6.0.5
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/mongo:/data/db
|
- mongo:/data/db
|
||||||
command:
|
command:
|
||||||
- --storageEngine=wiredTiger
|
- --storageEngine=wiredTiger
|
||||||
environment:
|
environment:
|
||||||
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USER}
|
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USER}
|
||||||
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PW}
|
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD}
|
||||||
networks:
|
networks:
|
||||||
- back
|
- back
|
||||||
ports:
|
ports:
|
||||||
@ -57,3 +62,6 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
front:
|
front:
|
||||||
back:
|
back:
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
mongo:
|
||||||
|
Loading…
Reference in New Issue
Block a user