Last active
April 16, 2020 08:24
-
-
Save SiddheshNan/69586da944b20d5293eb909c34b64a71 to your computer and use it in GitHub Desktop.
thinger.io maker server running in snapcraft for amd64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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