瀏覽代碼

Update docker-compose.yml

Shleeble 6 年之前
父節點
當前提交
a5125b9239
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      docker-compose.yml

+ 5 - 1
docker-compose.yml

@@ -16,11 +16,14 @@ services:
     # Comment to use dockerhub image
     # Comment to use dockerhub image
     build: .
     build: .
     image: pixelfed
     image: pixelfed
-    # If you have a traefik running, uncomment this to expose Pixelfed
+    ## If you have a traefik running, uncomment this to expose Pixelfed
     # labels:
     # labels:
     #   - traefik.enable=true
     #   - traefik.enable=true
     #   - traefik.frontend.rule=Host:your.url
     #   - traefik.frontend.rule=Host:your.url
     #   - traefik.port=80
     #   - traefik.port=80
+    ## If you have a standard reverse proxy, uncommit this to expose Pixelfed
+    # ports:
+    #   - "127.0.0.1:8080:80"
     env_file:
     env_file:
       - ./.env
       - ./.env
     volumes:
     volumes:
@@ -40,6 +43,7 @@ services:
       - "app-storage:/var/www/storage"
       - "app-storage:/var/www/storage"
       - "app-bootstrap:/var/www/bootstrap"
       - "app-bootstrap:/var/www/bootstrap"
     networks:
     networks:
+      - external  # Required for ActivityPub
       - internal
       - internal
     command: gosu www-data php artisan horizon
     command: gosu www-data php artisan horizon