aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: aa1a0f51ea485e79d1ff658824a377f931ff4046 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
version: "3.7"

services:
  snekbox:
    container_name: snekbox_dev
    hostname: snekbox_dev
    privileged: true
    image: ghcr.io/python-discord/snekbox${IMAGE_SUFFIX:--venv:dev}
    ports:
     - 8060:8060
    init: true
    ipc: none
    tty: true
    environment:
      DEBUG: 1
      PYTHONDONTWRITEBYTECODE: 1
    build:
      context: .
      dockerfile: Dockerfile
      target: venv
      args:
        DEV: 1
      cache_from:
        - ghcr.io/python-discord/snekbox:latest
    volumes:
      - .:/snekbox
      - user-base:/snekbox/user_base

volumes:
  user-base: