Fix ports used by docker (#3012)

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
This commit is contained in:
Edgar Alvarado 2023-06-12 18:38:27 -04:00 committed by GitHub
parent 5f92125e44
commit 932e65c16d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -33,5 +33,4 @@ RUN apk add libpq
# Copy resources # Copy resources
COPY --from=builder /app/lemmy_server /app/lemmy COPY --from=builder /app/lemmy_server /app/lemmy
EXPOSE 8536
CMD ["/app/lemmy"] CMD ["/app/lemmy"]

View file

@ -16,8 +16,9 @@ services:
- lemmyexternalproxy - lemmyexternalproxy
ports: ports:
# actual and only port facing any connection from outside # actual and only port facing any connection from outside
# Note, change the left number if port 80 is already in use on your system (or you want to run a reverse proxy outside this config) # Note, change the left number if port 1236 is already in use on your system
- "80:80" # You could use port 80 if you won't use a reverse proxy
- "1236:1236"
- "8536:8536" - "8536:8536"
volumes: volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro,Z - ./nginx.conf:/etc/nginx/nginx.conf:ro,Z