2024-05-17 22:32:32 +00:00
|
|
|
services:
|
|
|
|
astro:
|
|
|
|
container_name: ${NAME}-astro
|
2024-05-18 17:09:49 +00:00
|
|
|
image: git.autonomic.zone/autonomic-cooperative/astro-payload-test-astro:latest
|
2024-05-17 22:32:32 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
build:
|
|
|
|
context: astro
|
2024-05-18 17:09:49 +00:00
|
|
|
command: ["yarn", "dev"]
|
2024-05-18 17:37:51 +00:00
|
|
|
environment:
|
|
|
|
DEV: 1
|
2024-05-17 22:32:32 +00:00
|
|
|
networks:
|
|
|
|
- front
|
|
|
|
volumes:
|
|
|
|
- ./astro:/base
|
|
|
|
- /base/node_modules/
|
|
|
|
ports:
|
|
|
|
- 3000:3000
|
|
|
|
depends_on:
|
|
|
|
- payload
|
|
|
|
|
|
|
|
payload:
|
2024-05-19 15:35:18 +00:00
|
|
|
image: git.autonomic.zone/autonomic-cooperative/astro-payload-test-payload-dev:latest
|
2024-05-17 22:32:32 +00:00
|
|
|
container_name: ${NAME}-payload
|
|
|
|
restart: unless-stopped
|
|
|
|
build:
|
|
|
|
context: payload
|
2024-05-19 16:41:14 +00:00
|
|
|
target: dev
|
2024-05-17 22:32:32 +00:00
|
|
|
environment:
|
2024-05-18 17:37:51 +00:00
|
|
|
DEV: 1
|
2024-05-17 22:32:32 +00:00
|
|
|
NAME: ${NAME}
|
2024-05-18 17:37:51 +00:00
|
|
|
NODE_ENV: development
|
2024-05-18 17:38:21 +00:00
|
|
|
PAYLOAD_URL: "http://localhost:${PAYLOAD_PORT}"
|
2024-05-17 22:32:32 +00:00
|
|
|
PAYLOAD_PORT: ${PAYLOAD_PORT}
|
|
|
|
PAYLOAD_SECRET: ${PAYLOAD_SECRET}
|
2024-05-19 15:55:40 +00:00
|
|
|
MONGODB_URI: "mongodb://$MONGODB_USER:$MONGODB_PASSWORD@mongo:27017"
|
2024-05-17 22:32:32 +00:00
|
|
|
volumes:
|
|
|
|
- ./payload/src:/base/src
|
2024-05-19 15:55:40 +00:00
|
|
|
# - ./astro/src/types.ts:/types.ts
|
2024-05-19 16:00:59 +00:00
|
|
|
- payload_media:/base/src/media
|
2024-05-17 22:32:32 +00:00
|
|
|
ports:
|
2024-05-18 17:38:21 +00:00
|
|
|
- ${PAYLOAD_PORT}:${PAYLOAD_PORT}
|
2024-05-17 22:32:32 +00:00
|
|
|
networks:
|
|
|
|
- front
|
|
|
|
- back
|
|
|
|
depends_on:
|
|
|
|
- mongo
|
|
|
|
|
|
|
|
mongo:
|
|
|
|
container_name: ${NAME}-mongo
|
|
|
|
image: mongo:6.0.5
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2024-05-18 17:09:49 +00:00
|
|
|
- mongo:/data/db
|
2024-05-17 22:32:32 +00:00
|
|
|
command:
|
|
|
|
- --storageEngine=wiredTiger
|
|
|
|
environment:
|
|
|
|
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USER}
|
2024-05-18 17:09:49 +00:00
|
|
|
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD}
|
2024-05-17 22:32:32 +00:00
|
|
|
networks:
|
|
|
|
- back
|
|
|
|
ports:
|
|
|
|
- 27017:27017
|
|
|
|
|
|
|
|
networks:
|
|
|
|
front:
|
|
|
|
back:
|
2024-05-18 17:09:49 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
mongo:
|
2024-05-18 17:38:21 +00:00
|
|
|
payload_media:
|