<commit_before># Factorio Docker

[Factorio][0] headless server - v0.14.17-experimental

## Usage

### Quickstart

```
docker run -d --name factorio -p 34197:34197/udp rfvgyhn/factorio
```

### Volumes

* `/saves` mount for save files
* `/mods` mount for mods
* `/config` mount for configuration files

```
docker run -d --name factorio \
   -p 34197:34197/udp \
   -v /host/path/saves:/saves \
   -v /host/path/mods:/mods \
   -v /host/path/config:/config \
   rfvgyhn/factorio
```

### Options

The following environment variables are available. The values show the defaults used if
the var isn't specified.

* `FACTORIO_SAVE_NAME=meeseeks` the name of the save file in `/saves`
* `FACTORIO_PORT=1234` network port to use
* `FACTORIO_BIND_ADDRESS=172.16.58.3` IP address (and optionally port) to bind to (`address[:port]`)

```
docker run -d --name factorio \
   -p 34197:34197/udp \
   -v /host/path/saves:/saves \
   -v /host/path/mods:/mods \
   -v /host/path/config:/config \
   -e FACTORIO_SAVE_NAME=rick \
   rfvgyhn/factorio<commit_msg>fix env defaults in readme to reflect actual defaults<commit_after># Factorio Docker

[Factorio][0] headless server - v0.14.17-experimental

## Usage

### Quickstart

```
docker run -d --name factorio -p 34197:34197/udp rfvgyhn/factorio
```

### Volumes

* `/saves` mount for save files
* `/mods` mount for mods
* `/config` mount for configuration files

```
docker run -d --name factorio \
   -p 34197:34197/udp \
   -v /host/path/saves:/saves \
   -v /host/path/mods:/mods \
   -v /host/path/config:/config \
   rfvgyhn/factorio
```

### Options

The following environment variables are available. The values show the defaults used if
the var isn't specified.

* `FACTORIO_SAVE_NAME=meeseeks` the name of the save file in `/saves`
* `FACTORIO_PORT=` network port to use
* `FACTORIO_BIND_ADDRESS=` IP address (and optionally port) to bind to (`address[:port]`)

```
docker run -d --name factorio \
   -p 34197:34197/udp \
   -v /host/path/saves:/saves \
   -v /host/path/mods:/mods \
   -v /host/path/config:/config \
   -e FACTORIO_SAVE_NAME=rick \
   rfvgyhn/factorio
{'fraction_non_alphanumeric': 0.14042553191489363, 'fraction_numerical': 0.03971631205673759, 'mean_word_length': 3.232, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3967616', 'n_tokens_mistral': 885, 'n_tokens_neox': 781, 'n_words': 215}