Files
pezkuwi-telemetry/docker-compose.yml
T
Arsham Teymourı 72311d9b61 adding front to the CI
adding frontend configmaps and envVars

optimizing docker-compose and DockerfIle
2021-08-10 20:07:07 +03:00

44 lines
989 B
YAML

version: "3"
services:
telemetry-frontend:
build:
dockerfile: Dockerfile
context: ./frontend/
# Copy in changes to the ui, so no need to rebuild the images.
volumes:
- /app/node_modules
- ./packages:/app/packages
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/default:/etc/nginx/sites-available/default
- ./env-config.js:/usr/share/nginx/html/env-config.js
ports:
- 3000:80
expose:
- 3000
telemetry-backend-shard:
build:
dockerfile: Dockerfile
context: ./backend/
command: [
'telemetry_shard',
'--listen', '0.0.0.0:8001',
'--core', 'http://telemetry-backend-core:8000/shard_submit'
]
ports:
- 8001:8001
expose:
- 8001
telemetry-backend-core:
build:
dockerfile: Dockerfile
context: ./backend/
command: [
'telemetry_core',
'--listen', '0.0.0.0:8000'
]
ports:
- 8000:8000
expose:
- 8000