-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (37 loc) · 1.14 KB
/
docker-compose.yml
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
32
33
34
35
36
37
version: "3"
services:
cocalc:
container_name: cocalc
# export COCALC_ENV_VERSION=local to use the local Docker image build
image: ghcr.io/tradingstrategy-ai/cocalc-env:${COCALC_ENV_VERSION:-master}
# Enable CPU/memory/etc. gauges
# https://stackoverflow.com/a/74065137/315168
security_opt:
- seccomp:unconfined
ports:
# Map host port 8080 to plain http
# Use for debugging only
- ${COCALC_ENV_BIND:-8080}:80
environment:
NOSSL: "true"
volumes:
# Map Cocalc's working folder to the host
# User database is cocalc-data/postgres
# Each Cocal users files fill be cocalc-data/$UID/*.ipynb
- $PWD/cocalc-data:/projects
caddy:
container_name: caddy
image: caddy:2.6.4-alpine
restart: unless-stopped
ports:
- "9997:9997"
- "9998:9998"
environment:
- ACME_AGREE=true
# Contains BASIC_AUTH_USER and BASIC_AUTH_PASSWORD
env_file:
- secrets.env
volumes:
- $PWD/Caddyfile:/etc/caddy/Caddyfile
- $PWD/logs:/var/log/caddy # shared volume with caddy
- $PWD/static:/var/static # shared volume with caddy