diff options
| author | 2021-02-07 20:25:41 +0000 | |
|---|---|---|
| committer | 2021-02-07 20:25:41 +0000 | |
| commit | c9368a4c67845132354c063483b86ad7d6959307 (patch) | |
| tree | 252eebb614063f16cb7c1fb2c070a8de635ce8d9 /docker-compose.yml | |
| parent | Remove cgroup parent constants from config file (diff) | |
| parent | Merge PR #92 - replace shell scripts with Python scripts (diff) | |
Merge branch 'master' into dynamic-parent-cgroups
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index a7747a6..f546024 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,17 +2,29 @@ version: "3.7" services: snekbox: - container_name: snekbox + container_name: snekbox_dev + hostname: snekbox_dev privileged: true - image: ghcr.io/python-discord/snekbox:latest + image: ghcr.io/python-discord/snekbox${IMAGE_SUFFIX:-:dev} ports: - 8060:8060 init: true ipc: none + tty: true + working_dir: $PWD + environment: + DEBUG: 1 + PIPENV_PIPFILE: /snekbox/Pipfile + PYTHONDONTWRITEBYTECODE: 1 build: context: . dockerfile: Dockerfile + args: + DEV: 1 + cache_from: + - ghcr.io/python-discord/snekbox:latest volumes: + - $PWD:$PWD - user-base:/snekbox/user_base volumes: |