deploy barebones
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
services:
|
||||
server:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: server.Dockerfile
|
||||
cache_from:
|
||||
- ${CI_REGISTRY_IMAGE:-blockly3d}/server:cache
|
||||
image: ${CI_REGISTRY_IMAGE:-blockly3d}/server:${CI_COMMIT_SHA:-latest}
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${SERVER_PORT:-3000}:3000"
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
env_file:
|
||||
- .env
|
||||
networks:
|
||||
- blockly3d
|
||||
|
||||
webclient:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: webclient.Dockerfile
|
||||
cache_from:
|
||||
- ${CI_REGISTRY_IMAGE:-blockly3d}/webclient:cache
|
||||
image: ${CI_REGISTRY_IMAGE:-blockly3d}/webclient:${CI_COMMIT_SHA:-latest}
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${CLIENT_PORT:-5000}:5000"
|
||||
networks:
|
||||
- blockly3d
|
||||
|
||||
networks:
|
||||
blockly3d:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user