mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-11 18:48:27 +00:00
Fix: docker build workflow
This commit is contained in:
parent
794737b7ec
commit
b1c62e1d53
2
.github/workflows/build-docker-image.yml
vendored
2
.github/workflows/build-docker-image.yml
vendored
@ -28,7 +28,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./docker/Dockerfile
|
file: ./docker-build/Dockerfile
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: redplanethq/core:${{ github.ref_name }}
|
tags: redplanethq/core:${{ github.ref_name }}
|
||||||
|
|||||||
@ -1,78 +0,0 @@
|
|||||||
version: "3.8"
|
|
||||||
|
|
||||||
services:
|
|
||||||
core:
|
|
||||||
container_name: core-app
|
|
||||||
build:
|
|
||||||
context: ../
|
|
||||||
dockerfile: ./docker/Dockerfile
|
|
||||||
environment:
|
|
||||||
- NODE_ENV=${NODE_ENV}
|
|
||||||
- DATABASE_URL=${DATABASE_URL}
|
|
||||||
- DIRECT_URL=${DIRECT_URL}
|
|
||||||
- SESSION_SECRET=${SESSION_SECRET}
|
|
||||||
- ENCRYPTION_KEY=${ENCRYPTION_KEY}
|
|
||||||
- MAGIC_LINK_SECRET=${MAGIC_LINK_SECRET}
|
|
||||||
- LOGIN_ORIGIN=${LOGIN_ORIGIN}
|
|
||||||
- APP_ORIGIN=${APP_ORIGIN}
|
|
||||||
- REDIS_HOST=${REDIS_HOST}
|
|
||||||
- REDIS_PORT=${REDIS_PORT}
|
|
||||||
- REDIS_TLS_DISABLED=${REDIS_TLS_DISABLED}
|
|
||||||
- NEO4J_URI=${NEO4J_URI}
|
|
||||||
- NEO4J_USERNAME=${NEO4J_USERNAME}
|
|
||||||
- NEO4J_PASSWORD=${NEO4J_PASSWORD}
|
|
||||||
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
|
||||||
- AUTH_GOOGLE_CLIENT_ID=${AUTH_GOOGLE_CLIENT_ID}
|
|
||||||
- AUTH_GOOGLE_CLIENT_SECRET=${AUTH_GOOGLE_CLIENT_SECRET}
|
|
||||||
- ENABLE_EMAIL_LOGIN=${ENABLE_EMAIL_LOGIN}
|
|
||||||
ports:
|
|
||||||
- "3000:3000"
|
|
||||||
depends_on:
|
|
||||||
- postgres
|
|
||||||
- redis
|
|
||||||
- neo4j
|
|
||||||
networks:
|
|
||||||
- core
|
|
||||||
|
|
||||||
postgres:
|
|
||||||
container_name: core-postgres
|
|
||||||
image: postgres:15
|
|
||||||
environment:
|
|
||||||
- POSTGRES_USER=${POSTGRES_USER}
|
|
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
||||||
- POSTGRES_DB=${POSTGRES_DB}
|
|
||||||
ports:
|
|
||||||
- "5432:5432"
|
|
||||||
volumes:
|
|
||||||
- postgres_data:/var/lib/postgresql/data
|
|
||||||
networks:
|
|
||||||
- core
|
|
||||||
|
|
||||||
redis:
|
|
||||||
container_name: core-redis
|
|
||||||
image: redis:7
|
|
||||||
ports:
|
|
||||||
- "6379:6379"
|
|
||||||
networks:
|
|
||||||
- core
|
|
||||||
|
|
||||||
neo4j:
|
|
||||||
container_name: core-neo4j
|
|
||||||
image: neo4j:5
|
|
||||||
environment:
|
|
||||||
- NEO4J_AUTH=${NEO4J_AUTH}
|
|
||||||
ports:
|
|
||||||
- "7474:7474"
|
|
||||||
- "7687:7687"
|
|
||||||
volumes:
|
|
||||||
- neo4j_data:/data
|
|
||||||
networks:
|
|
||||||
- core
|
|
||||||
|
|
||||||
networks:
|
|
||||||
core:
|
|
||||||
driver: bridge
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
postgres_data:
|
|
||||||
neo4j_data:
|
|
||||||
Loading…
x
Reference in New Issue
Block a user