2023-05-13 14:38:56 +00:00
|
|
|
services:
|
|
|
|
astro:
|
|
|
|
container_name: ${NAME}-astro
|
|
|
|
restart: unless-stopped
|
|
|
|
build:
|
|
|
|
context: astro
|
2024-05-06 16:11:59 +00:00
|
|
|
target: de
|
2023-05-13 14:38:56 +00:00
|
|
|
networks:
|
|
|
|
- front
|
2024-05-06 16:11:59 +00:00
|
|
|
volumes:
|
|
|
|
- ./astro:/base
|
|
|
|
- /base/node_modules/
|
|
|
|
ports:
|
|
|
|
- 3000:3000
|
2023-05-13 14:38:56 +00:00
|
|
|
depends_on:
|
|
|
|
- payload
|
|
|
|
|
|
|
|
payload:
|
|
|
|
container_name: ${NAME}-payload
|
|
|
|
restart: unless-stopped
|
|
|
|
build:
|
|
|
|
context: payload
|
|
|
|
environment:
|
|
|
|
NAME: ${NAME}
|
|
|
|
PAYLOAD_URL: ${PAYLOAD_URL}
|
|
|
|
PAYLOAD_PORT: ${PAYLOAD_PORT}
|
|
|
|
PAYLOAD_SECRET: ${PAYLOAD_SECRET}
|
|
|
|
MONGODB_URI: ${MONGODB_URI}
|
|
|
|
TOKEN: ${TOKEN}
|
2024-05-06 16:11:59 +00:00
|
|
|
volumes:
|
|
|
|
- ./payload/src:/base/src
|
|
|
|
- ./astro/src/types.ts:/types.ts
|
|
|
|
ports:
|
|
|
|
- 3001:3001
|
2023-05-13 14:38:56 +00:00
|
|
|
networks:
|
|
|
|
- front
|
|
|
|
- back
|
|
|
|
depends_on:
|
|
|
|
- mongo
|
|
|
|
|
|
|
|
mongo:
|
|
|
|
container_name: ${NAME}-mongo
|
|
|
|
image: mongo:6.0.5
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ./data/mongo:/data/db
|
|
|
|
command:
|
|
|
|
- --storageEngine=wiredTiger
|
|
|
|
environment:
|
|
|
|
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USER}
|
|
|
|
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PW}
|
|
|
|
networks:
|
|
|
|
- back
|
2024-05-06 16:11:59 +00:00
|
|
|
ports:
|
|
|
|
- 27017:27017
|
2023-05-13 14:38:56 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
front:
|
|
|
|
back:
|