Skip to content

Instantly share code, notes, and snippets.

@minetaro12
Last active August 20, 2022 02:32
Show Gist options
  • Save minetaro12/63a5d5d5c55d49dc904905b6a38fb082 to your computer and use it in GitHub Desktop.
Save minetaro12/63a5d5d5c55d49dc904905b6a38fb082 to your computer and use it in GitHub Desktop.
misskey docker with nginx
version: "3"
services:
web:
build: .
restart: always
links:
- db
- redis
# - es
ports:
- "3000:3000"
networks:
- internal_network
- external_network
volumes:
- ./files:/misskey/files
- ./.config:/misskey/.config:ro
redis:
restart: always
image: redis:4.0-alpine
networks:
- internal_network
volumes:
- ./redis:/data
db:
restart: always
image: postgres:12.2-alpine
networks:
- internal_network
env_file:
- .config/docker.env
volumes:
- ./db:/var/lib/postgresql/data
nginx:
restart: always
image: nginx
volumes:
- ./nginx/misskey.conf:/etc/nginx/conf.d/default.conf:ro
- ./www:/var/www/html
- /etc/letsencrypt:/etc/letsencrypt:ro
ports:
- 80:80
- 443:443
networks:
- internal_network
- external_network
# es:
# restart: always
# image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.4.2
# environment:
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
# networks:
# - internal_network
# volumes:
# - ./elasticsearch:/usr/share/elasticsearch/data
networks:
internal_network:
internal: true
external_network:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment