aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: 8104fb2858f1baea548ce3030eab461d3b3cd672 (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
31
version: "3.7"

services:
  snekbox:
    container_name: snekbox_dev
    hostname: snekbox_dev
    privileged: true
    image: ghcr.io/chrislovering/snekbox:3.11
    pull_policy: never
    ports:
     - 8060:8060
    init: true
    ipc: none
    tty: true
    environment:
      SNEKBOX_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: