Files
factorio-learning-environment/docker-compose.yml
kiankyars a62f7f208c Restructure (#274)
* add changes

* refactor: clean up unused Docker scripts and redundant files

Remove unused and redundant files from fle/cluster/docker/:

- main.py: Redundant Python script that duplicates run_local.sh functionality
  with hardcoded ports and basic container management. Not used in workflow.

- install-docker.sh: AWS EC2-specific setup script with hardcoded instance
  (ec2-18-133-239-115) and outdated Amazon Linux commands. Current workflow
  uses docker-compose instead.

- probe.sh: Simple port checking script using lsof. Redundant since
  docker-compose handles health checks and container status monitoring.

- setup_docker_repo.sh: AWS ECR-specific setup with hardcoded AWS account
  (216370203482). Contains mostly commented code and unused ECR repository
  configuration. Not used in current workflow.

- requirements.txt: Redundant Python dependency file. Docker is a system
  dependency, not a Python package. The Python docker SDK is already
  included in pyproject.toml dependencies.

Kept essential files: Dockerfile, build scripts, run scripts, config/,
mods/, and README.md which are actively used in the Docker workflow.

* refactor: move lib/ and tools/ to mods/, clean up fle/env/utils/ (all deleted files were unused), prep for entrypoints/ refactor

* readd

* last undo

* refactor: move evaluator.py to algorithms/mcts, move experiment entrypoints to entrypoints/, update imports accordingly

* version info

* incorrect gitignore

* style: replace all relative imports in fle.agents with absolute imports

* simplify gitignore

* commit

* gitignore

* redo

* update

* No code is importing the fle.agents.data package/module

* exclude data/prompts from ruff lint/format in pre-commit

* yaml

* Files were cleared but not deleted

* finalize Neel's suggestions

* Jul 12, 2025 at 13:29

* Jul 12, 2025 at 15:47

* push

* Jul 12, 2025 at 16:03

* Jul 12, 2025 at 16:03

* Jul 12, 2025 at 16:03

* fix

* fix

* fix

* push

* push

* Jul 12, 2025 at 17:48

* remove publish on merge
2025-07-17 17:12:47 +03:00

47 lines
1.6 KiB
YAML

version: '3'
services:
factorio_0:
image: factorio
platform: ${DOCKER_PLATFORM:-linux/amd64}
command: /opt/factorio/bin/x64/factorio --start-server-load-scenario default_lab_scenario
--port 34197 --server-settings /opt/factorio/config/server-settings.json --map-gen-settings
/opt/factorio/config/map-gen-settings.json --map-settings /opt/factorio/config/map-settings.json
--server-banlist /opt/factorio/config/server-banlist.json --rcon-port 27015
--rcon-password "factorio" --server-whitelist /opt/factorio/config/server-whitelist.json
--use-server-whitelist --server-adminlist /opt/factorio/config/server-adminlist.json
--mod-directory /opt/factorio/mods --map-gen-seed 44340
deploy:
resources:
limits:
cpus: '1'
memory: 1024m
entrypoint: []
environment:
- SAVES=/opt/factorio/saves
- CONFIG=/opt/factorio/config
- MODS=/opt/factorio/mods
- SCENARIOS=/opt/factorio/scenarios
- PORT=34197
- RCON_PORT=27015
ports:
- 34197:34197/udp
- 27000:27015/tcp
pull_policy: never
restart: unless-stopped
user: factorio
volumes:
- source: ../scenarios/default_lab_scenario
target: /opt/factorio/scenarios/default_lab_scenario
type: bind
- source: ../scenarios/open_world
target: /opt/factorio/scenarios/open_world
type: bind
- source: ~/Applications/Factorio.app/Contents/Resources/mods
target: /opt/factorio/mods
type: bind
- source: ../../data/_screenshots
target: /opt/factorio/script-output
type: bind