Skip to content

Instantly share code, notes, and snippets.

@SiddheshNan
Last active April 16, 2020 08:24
Show Gist options
  • Save SiddheshNan/69586da944b20d5293eb909c34b64a71 to your computer and use it in GitHub Desktop.
Save SiddheshNan/69586da944b20d5293eb909c34b64a71 to your computer and use it in GitHub Desktop.
thinger.io maker server running in snapcraft for amd64
version: '3.7'
services:
thingerServer:
image: ##############
container_name: thingerServer
user: root
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /lib/modules:/lib/modules:ro
tmpfs:
- /run
- /run/lock
- /tmp
security_opt:
- apparmor:unconfined
- seccomp:unconfined
cap_add:
- SYS_ADMIN
devices:
- /dev/fuse
ports:
- 0.0.0.0:80:80
- 0.0.0.0:443:443
- 0.0.0.0:25200:25200
- 0.0.0.0:25202:25202
restart: always
stdin_open: true
tty: true
# mongodb
mongodb:
image: mongo:4
container_name: "mongodb"
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
- MONGODB_DATABASE=thinger
volumes:
- /data/mongodb:/data/db
ports:
- 0.0.0.0:27017:27017
command: mongod --quiet
restart: always
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment