Skip to content

Commit

Permalink
update standalone docker-compose for local environment
Browse files Browse the repository at this point in the history
  • Loading branch information
zakariamaaraki committed May 17, 2024
1 parent 54c0f18 commit 729c7bb
Showing 1 changed file with 25 additions and 45 deletions.
70 changes: 25 additions & 45 deletions local/standalone/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,71 +2,51 @@
version: "3.3"
services:

compiler-1:
compiler:
build: ../..
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- compiler:/compiler
ports:
- 8080:8082
restart: "on-failure"
- 8082:8082
- 9092:9092
environment:
DELETE_DOCKER_IMAGE: 'true'
EXECUTION_MEMORY_MAX: 10000
EXECUTION_MEMORY_MIN: 0
EXECUTION_MEMORY_MIN: 1
EXECUTION_TIME_MAX: 15
EXECUTION_TIME_MIN: 0
MAX_REQUESTS: 1000
MAX_TEST_CASES: 20
MAX_EXECUTION_CPUS: 0.1
COMPILATION_CONTAINER_VOLUME: 'standalone_compiler' # volume name = folderName_volumeName
EXECUTION_TIME_MIN: 1
MAX_REQUESTS: 20
COMPILATION_CONTAINER_VOLUME: 'local_compiler' # volume name = folderName_volumeName
GRPC_PORT: 9092

# Push notifications
ENABLE_PUSH_NOTIFICATION: 'true'

compiler-2:
build: ../..
prometheus:
image: prom/prometheus:latest
depends_on:
- compiler
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- compiler:/compiler
- ../prometheus_conf/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- 8081:8082
restart: "on-failure"
environment:
DELETE_DOCKER_IMAGE: 'true'
EXECUTION_MEMORY_MAX: 10000
EXECUTION_MEMORY_MIN: 0
EXECUTION_TIME_MAX: 15
EXECUTION_TIME_MIN: 0
MAX_REQUESTS: 1000
MAX_TEST_CASES: 20
MAX_EXECUTION_CPUS: 0.1
COMPILATION_CONTAINER_VOLUME: 'standalone_compiler' # volume name = folderName_volumeName
- 9090:9090

# Push notifications
ENABLE_PUSH_NOTIFICATION: 'true'
grafana:
image: grafana/grafana:latest
depends_on:
- prometheus
volumes:
- ../grafana_conf/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yaml
ports:
- 3000:3000

compiler-3:
build: ../..
portainer:
image: portainer/portainer
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- compiler:/compiler
ports:
- 8082:8082
restart: "on-failure"
environment:
DELETE_DOCKER_IMAGE: 'true'
EXECUTION_MEMORY_MAX: 10000
EXECUTION_MEMORY_MIN: 0
EXECUTION_TIME_MAX: 15
EXECUTION_TIME_MIN: 0
MAX_REQUESTS: 1000
MAX_TEST_CASES: 20
MAX_EXECUTION_CPUS: 0.1
COMPILATION_CONTAINER_VOLUME: 'standalone_compiler' # volume name = folderName_volumeName

# Push notifications
ENABLE_PUSH_NOTIFICATION: 'true'
- 9000:9000

volumes:
compiler:
Expand Down

0 comments on commit 729c7bb

Please sign in to comment.