-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose.example.yml
29 lines (28 loc) · 1.06 KB
/
docker-compose.example.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
version: '3'
services:
cloudmacs:
image: karlicoss/cloudmacs:latest
container_name: cloudmacs
restart: unless-stopped
stdin_open: true
tty: true
ports:
- 8080:8080
environment:
# ugh. docker-compose can't into proper shell substitution...
- UNAME
- GNAME
- EMACS_UID
- EMACS_GID
- UHOME=/home/emacs
- TERM=xterm-256color # TODO move it to container instead?
volumes:
# you might want to share your emacs/spacemacs init file, normally there should be no harm in it
- ${HOME}/.spacemacs.d:/home/emacs/.spacemacs.d
# or alternatively, if you're using .spacemacs file
# - ${HOME}/.spacemacs:/home/emacs/.spacemacs
# see Readme::Setting up Spacemacs for explanation
- ${HOME}/.cloudmacs.d:/home/emacs/.emacs.d
# map your personal files here you want to make accessible to cloudmacs
# WARNING: be careful mapping more than necesarry (e.g. whole hard drives) if you're planning to expose your container to the outside world
- ${HOME}/data:/home/emacs/data