mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge pull request #6 from The-Schools-in-Motion-Network/avoid_builds_on_production
feat: Avoid new builds on base docker-compose.yml
This commit is contained in:
commit
d7d31e0288
@ -1,15 +1,9 @@
|
|||||||
version: "3.4"
|
version: "3.4"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
mailserver:
|
|
||||||
image: djfarrelly/maildev
|
|
||||||
ports:
|
|
||||||
- 1080:80
|
|
||||||
networks:
|
|
||||||
- hc-network
|
|
||||||
webapp:
|
webapp:
|
||||||
build:
|
build:
|
||||||
context: webapp
|
context: backend
|
||||||
target: build-and-test
|
target: build-and-test
|
||||||
volumes:
|
volumes:
|
||||||
- ./webapp:/nitro-web
|
- ./webapp:/nitro-web
|
||||||
@ -17,6 +11,8 @@ services:
|
|||||||
- NUXT_BUILD=/tmp/nuxt # avoid file permission issues when `rm -rf .nuxt/`
|
- NUXT_BUILD=/tmp/nuxt # avoid file permission issues when `rm -rf .nuxt/`
|
||||||
- PUBLIC_REGISTRATION=false
|
- PUBLIC_REGISTRATION=false
|
||||||
command: yarn run dev
|
command: yarn run dev
|
||||||
|
volumes:
|
||||||
|
- webapp_node_modules:/nitro-web/node_modules
|
||||||
backend:
|
backend:
|
||||||
build:
|
build:
|
||||||
context: backend
|
context: backend
|
||||||
@ -30,6 +26,12 @@ services:
|
|||||||
- SMTP_IGNORE_TLS=true
|
- SMTP_IGNORE_TLS=true
|
||||||
- "DEBUG=${DEBUG}"
|
- "DEBUG=${DEBUG}"
|
||||||
- PUBLIC_REGISTRATION=false
|
- PUBLIC_REGISTRATION=false
|
||||||
|
volumes:
|
||||||
|
- backend_node_modules:/nitro-backend/node_modules
|
||||||
|
- uploads:/nitro-backend/public/uploads
|
||||||
|
neo4j:
|
||||||
|
volumes:
|
||||||
|
- neo4j_data:/data
|
||||||
maintenance:
|
maintenance:
|
||||||
image: humanconnection/maintenance:latest
|
image: humanconnection/maintenance:latest
|
||||||
build:
|
build:
|
||||||
@ -39,6 +41,17 @@ services:
|
|||||||
- hc-network
|
- hc-network
|
||||||
ports:
|
ports:
|
||||||
- 3503:80
|
- 3503:80
|
||||||
|
mailserver:
|
||||||
|
image: djfarrelly/maildev
|
||||||
|
ports:
|
||||||
|
- 1080:80
|
||||||
|
networks:
|
||||||
|
- hc-network
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
hc-network:
|
hc-network:
|
||||||
|
volumes:
|
||||||
|
webapp_node_modules:
|
||||||
|
backend_node_modules:
|
||||||
|
neo4j_data:
|
||||||
|
uploads:
|
||||||
|
|||||||
20
docker-compose.production.yml
Normal file
20
docker-compose.production.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
version: "3.4"
|
||||||
|
|
||||||
|
services:
|
||||||
|
webapp:
|
||||||
|
build:
|
||||||
|
context: webapp
|
||||||
|
target: production
|
||||||
|
args:
|
||||||
|
- "BUILD_COMMIT=${TRAVIS_COMMIT}"
|
||||||
|
backend:
|
||||||
|
build:
|
||||||
|
context: backend
|
||||||
|
target: production
|
||||||
|
args:
|
||||||
|
- "BUILD_COMMIT=${TRAVIS_COMMIT}"
|
||||||
|
neo4j:
|
||||||
|
build:
|
||||||
|
context: neo4j
|
||||||
|
args:
|
||||||
|
- "BUILD_COMMIT=${TRAVIS_COMMIT}"
|
||||||
@ -3,11 +3,6 @@ version: "3.4"
|
|||||||
services:
|
services:
|
||||||
webapp:
|
webapp:
|
||||||
image: humanconnection/nitro-web:latest
|
image: humanconnection/nitro-web:latest
|
||||||
build:
|
|
||||||
context: webapp
|
|
||||||
target: production
|
|
||||||
args:
|
|
||||||
- "BUILD_COMMIT=${TRAVIS_COMMIT}"
|
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
- 3002:3002
|
- 3002:3002
|
||||||
@ -15,28 +10,18 @@ services:
|
|||||||
- hc-network
|
- hc-network
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
volumes:
|
|
||||||
- webapp_node_modules:/nitro-web/node_modules
|
|
||||||
environment:
|
environment:
|
||||||
- HOST=0.0.0.0
|
- HOST=0.0.0.0
|
||||||
- GRAPHQL_URI=http://backend:4000
|
- GRAPHQL_URI=http://backend:4000
|
||||||
- MAPBOX_TOKEN="pk.eyJ1IjoiaHVtYW4tY29ubmVjdGlvbiIsImEiOiJjajl0cnBubGoweTVlM3VwZ2lzNTNud3ZtIn0.bZ8KK9l70omjXbEkkbHGsQ"
|
- MAPBOX_TOKEN="pk.eyJ1IjoiaHVtYW4tY29ubmVjdGlvbiIsImEiOiJjajl0cnBubGoweTVlM3VwZ2lzNTNud3ZtIn0.bZ8KK9l70omjXbEkkbHGsQ"
|
||||||
backend:
|
backend:
|
||||||
image: humanconnection/nitro-backend:latest
|
image: humanconnection/nitro-backend:latest
|
||||||
build:
|
|
||||||
context: backend
|
|
||||||
target: production
|
|
||||||
args:
|
|
||||||
- "BUILD_COMMIT=${TRAVIS_COMMIT}"
|
|
||||||
networks:
|
networks:
|
||||||
- hc-network
|
- hc-network
|
||||||
depends_on:
|
depends_on:
|
||||||
- neo4j
|
- neo4j
|
||||||
ports:
|
ports:
|
||||||
- 4000:4000
|
- 4000:4000
|
||||||
volumes:
|
|
||||||
- backend_node_modules:/nitro-backend/node_modules
|
|
||||||
- uploads:/nitro-backend/public/uploads
|
|
||||||
environment:
|
environment:
|
||||||
- NEO4J_URI=bolt://neo4j:7687
|
- NEO4J_URI=bolt://neo4j:7687
|
||||||
- GRAPHQL_URI=http://backend:4000
|
- GRAPHQL_URI=http://backend:4000
|
||||||
@ -47,10 +32,6 @@ services:
|
|||||||
- "DEBUG=${DEBUG}"
|
- "DEBUG=${DEBUG}"
|
||||||
neo4j:
|
neo4j:
|
||||||
image: humanconnection/neo4j:latest
|
image: humanconnection/neo4j:latest
|
||||||
build:
|
|
||||||
context: neo4j
|
|
||||||
args:
|
|
||||||
- "BUILD_COMMIT=${TRAVIS_COMMIT}"
|
|
||||||
networks:
|
networks:
|
||||||
- hc-network
|
- hc-network
|
||||||
environment:
|
environment:
|
||||||
@ -60,12 +41,5 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 7687:7687
|
- 7687:7687
|
||||||
- 7474:7474
|
- 7474:7474
|
||||||
volumes:
|
|
||||||
- neo4j_data:/data
|
|
||||||
networks:
|
networks:
|
||||||
hc-network:
|
hc-network:
|
||||||
volumes:
|
|
||||||
webapp_node_modules:
|
|
||||||
backend_node_modules:
|
|
||||||
neo4j_data:
|
|
||||||
uploads:
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user