generated from autonomic-cooperative/astro-payload-template
74 lines
1.6 KiB
YAML
74 lines
1.6 KiB
YAML
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
|
|
|
|
payload:
|
|
image: git.autonomic.zone/autonomic-cooperative/astro-payload-test-payload:latest
|
|
container_name: ${NAME}-payload
|
|
restart: unless-stopped
|
|
build:
|
|
context: payload
|
|
environment:
|
|
DEV: 1
|
|
NAME: ${NAME}
|
|
NODE_ENV: development
|
|
PAYLOAD_URL: "http://localhost:${PAYLOAD_PORT}"
|
|
PAYLOAD_PORT: ${PAYLOAD_PORT}
|
|
PAYLOAD_SECRET: ${PAYLOAD_SECRET}
|
|
MONGODB_USER:
|
|
MONGODB_HOST: mongo
|
|
MONGODB_PASSWORD:
|
|
MONGODB_PORT: 27017
|
|
volumes:
|
|
- ./payload/src:/base/src
|
|
- ./astro/src/types.ts:/types.ts
|
|
volumes:
|
|
- payload_media:/prod/dist/media
|
|
ports:
|
|
- ${PAYLOAD_PORT}:${PAYLOAD_PORT}
|
|
networks:
|
|
- front
|
|
- back
|
|
depends_on:
|
|
- mongo
|
|
|
|
mongo:
|
|
container_name: ${NAME}-mongo
|
|
image: mongo:6.0.5
|
|
restart: unless-stopped
|
|
volumes:
|
|
- mongo:/data/db
|
|
command:
|
|
- --storageEngine=wiredTiger
|
|
environment:
|
|
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USER}
|
|
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD}
|
|
networks:
|
|
- back
|
|
ports:
|
|
- 27017:27017
|
|
|
|
networks:
|
|
front:
|
|
back:
|
|
|
|
volumes:
|
|
mongo:
|
|
payload_media:
|