aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorGravatar Mark <[email protected]>2021-02-04 17:25:57 -0800
committerGravatar GitHub <[email protected]>2021-02-04 17:25:57 -0800
commitcf87b9b3cbc385ac0ae084cd73be3c218a125938 (patch)
tree3fa5ca111bc9129125883fa4c426d69512d119ef /docker-compose.yml
parentMerge PR #88 - use protobuf to parse config (diff)
parentCI: use Docker Compose to run the container (diff)
Merge PR #92 - replace shell scripts with Python scripts
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml16
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: