Clean up drone and docker-compose
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
80fdf4332f
commit
e9d28c472d
@ -24,12 +24,8 @@ steps:
|
||||
environment:
|
||||
DOMAIN: nextload.swarm-demo.autonomic.zone
|
||||
STACK_NAME: nextload-demo_autonomic_zone
|
||||
SECRET_PAYLOAD_SECRET_VERSION: v1
|
||||
SECRET_TOKEN_VERSION: v1
|
||||
SECRET_MONGO_PASSWORD_VERSION: v1
|
||||
NGINX_CONF_VERSION: v1
|
||||
REPOSITORY: "autonomic-cooperative/nextload"
|
||||
DRONE_URL: "https://drone.autonomic.zone"
|
||||
PAYLOAD_URL: "https://nextload.swarm-demo.autonomic.zone/admin" # Not needed anymore?
|
||||
depends_on:
|
||||
- publish nextload container
|
@ -1,44 +1,22 @@
|
||||
services:
|
||||
astro:
|
||||
container_name: ${NAME}-astro
|
||||
image: git.autonomic.zone/autonomic-cooperative/astro-payload-test-astro:latest
|
||||
nextjs:
|
||||
image: git.autonomic.zone/autonomic-cooperative/nextload:latest
|
||||
container_name: ${NAME}-nextjs
|
||||
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
|
||||
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_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
|
||||
@ -49,6 +27,8 @@ services:
|
||||
container_name: ${NAME}-mongo
|
||||
image: mongo:6.0.5
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 27017:27017
|
||||
volumes:
|
||||
- mongo:/data/db
|
||||
command:
|
||||
@ -56,10 +36,9 @@ services:
|
||||
environment:
|
||||
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USER}
|
||||
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD}
|
||||
|
||||
networks:
|
||||
- back
|
||||
ports:
|
||||
- 27017:27017
|
||||
|
||||
networks:
|
||||
front:
|
||||
|
Loading…
Reference in New Issue
Block a user