mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
We don't need development dependencies in production. I also added the BUILD_COMMIT environment variable to the image for convenience.
41 lines
742 B
YAML
41 lines
742 B
YAML
version: "3.7"
|
|
|
|
services:
|
|
backend:
|
|
image: humanconnection/nitro-backend:latest
|
|
build:
|
|
context: .
|
|
target: production
|
|
networks:
|
|
- hc-network
|
|
depends_on:
|
|
- neo4j
|
|
ports:
|
|
- 4000:4000
|
|
environment:
|
|
- NEO4J_URI=bolt://neo4j:7687
|
|
- GRAPHQL_PORT=4000
|
|
- GRAPHQL_URI=http://localhost:4000
|
|
- CLIENT_URI=http://localhost:3000
|
|
- JWT_SECRET=b/&&7b78BF&fv/Vd
|
|
- MOCK=false
|
|
|
|
neo4j:
|
|
image: humanconnection/neo4j:latest
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.neo4j
|
|
networks:
|
|
- hc-network
|
|
volumes:
|
|
- neo4j-data:/data
|
|
environment:
|
|
- NEO4J_AUTH=none
|
|
|
|
networks:
|
|
hc-network:
|
|
name: hc-network
|
|
|
|
volumes:
|
|
neo4j-data:
|