X-Git-Url: https://awoo.directory/mastodon.git/blobdiff_plain/71b9205679832950047b2de8e4ef27121c5ea2fe..72e662bb0d516caf2f9d1776ab5cc022bfdf1462:/docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml index 68c8ef960..cb49fda97 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,14 +1,24 @@ -version: '2' +version: '3' services: + db: restart: always image: postgres:alpine +### Uncomment to enable DB persistance +# volumes: +# - ./postgres:/var/lib/postgresql/data + redis: restart: always image: redis:alpine +### Uncomment to enable REDIS persistance +# volumes: +# - ./redis:/data + web: - restart: always build: . + image: gargron/mastodon + restart: always env_file: .env.production command: bundle exec rails s -p 3000 -b '0.0.0.0' ports: @@ -18,10 +28,13 @@ services: - redis volumes: - ./public/assets:/mastodon/public/assets + - ./public/packs:/mastodon/public/packs - ./public/system:/mastodon/public/system + streaming: - restart: always build: . + image: gargron/mastodon + restart: always env_file: .env.production command: npm run start ports: @@ -29,11 +42,13 @@ services: depends_on: - db - redis + sidekiq: - restart: always build: . + image: gargron/mastodon + restart: always env_file: .env.production - command: bundle exec sidekiq -q default -q mailers -q push + command: bundle exec sidekiq -q default -q mailers -q pull -q push depends_on: - db - redis