selfhosted photos docker error wsl windows

it sets to localhost:8080 by itself for no apparent reason
9 Replies
Ducky
Ducky2mo ago
I'm sorry, I couldn't find the answer in the documentation. -# If your issue is resolved, feel free to use the /solved command to close this thread. If you'd like to ask me another question use /docsearch
abe
abeOP2mo ago
the endpoint url sets itself to 8080 but default port is 3000
TickleMeWalrus
TickleMeWalrus2mo ago
you can modify the endpoint
abe
abeOP2mo ago
i tried modifying first variable and not the second, then it f#$ked up so bad btw am on docker-compose
abe
abeOP2mo ago
abe
abeOP2mo ago
and pgsql connection fails so many issues it says authentication error
TickleMeWalrus
TickleMeWalrus2mo ago
I’ll have a look a bit later. I can also provide a sample of my config if that helps?
abe
abeOP2mo ago
sure go ahead im waiting i just noticed the password variable, is that different on my side plus sign might cause the issue just imho its conflicting with another package
TickleMeWalrus
TickleMeWalrus2mo ago
my two configs
key:
encryption: RANDOM-ENC-KEY
hash: RANDOM-HASH
jwt:
secret: RANDOM-SECRET

db:
host: postgres
port: 5432
name: ente_db
user: pguser
password: PASSWORDGOESHERE

s3:
#are_local_buckets: true
hot_storage:
primary: b2-eu-cen
#secondary: wasabi-eu-central-2-v3
b2-eu-cen:
key: KEY
secret: SECRET
endpoint: https://s3.ap-southeast-2.wasabisys.com
region: ap-southeast-2
bucket: MYBUCKET
compliance: false

internal:
admin: ADMIN-NUMBER
disable-registration: false

replication:
enabled: false

apps:
public-albums: https://ente-album.domain.com
cast: https://ente-cast.domain.com
accounts: https://ente-accounts.domain.com
#family: https://
#
# Passkey support (optional)
# Use case: MFA
webauthn:
# Our "Relying Party" ID. This scopes the generated credentials.
# See: https://www.w3.org/TR/webauthn-3/#rp-id
rpid: domain.com
# Whitelist of origins from where we will accept WebAuthn requests.
# See: https://github.com/go-webauthn/webauthn
rporigins:
- "https://ente-accounts.domain.com"
- "https://ente-api.domain.com"
- "https://ente.domain.com"
key:
encryption: RANDOM-ENC-KEY
hash: RANDOM-HASH
jwt:
secret: RANDOM-SECRET

db:
host: postgres
port: 5432
name: ente_db
user: pguser
password: PASSWORDGOESHERE

s3:
#are_local_buckets: true
hot_storage:
primary: b2-eu-cen
#secondary: wasabi-eu-central-2-v3
b2-eu-cen:
key: KEY
secret: SECRET
endpoint: https://s3.ap-southeast-2.wasabisys.com
region: ap-southeast-2
bucket: MYBUCKET
compliance: false

internal:
admin: ADMIN-NUMBER
disable-registration: false

replication:
enabled: false

apps:
public-albums: https://ente-album.domain.com
cast: https://ente-cast.domain.com
accounts: https://ente-accounts.domain.com
#family: https://
#
# Passkey support (optional)
# Use case: MFA
webauthn:
# Our "Relying Party" ID. This scopes the generated credentials.
# See: https://www.w3.org/TR/webauthn-3/#rp-id
rpid: domain.com
# Whitelist of origins from where we will accept WebAuthn requests.
# See: https://github.com/go-webauthn/webauthn
rporigins:
- "https://ente-accounts.domain.com"
- "https://ente-api.domain.com"
- "https://ente.domain.com"
My museum
services:
museum:
image: ghcr.io/ente-io/server
ports:
- 127.0.0.1:8080:8080 # API
depends_on:
postgres:
condition: service_healthy
volumes:
- ./museum.yaml:/museum.yaml:ro
- ./data:/data:ro

# Resolve "localhost:3200" in the museum container to the minio container.
socat:
image: alpine/socat
network_mode: service:museum
depends_on: [museum]
command: "TCP-LISTEN:3200,fork,reuseaddr TCP:minio:3200"

web:
image: ghcr.io/ente-io/web
# Uncomment what you need to tweak.
ports:
- 127.0.0.1:3005:3000 # Photos web app
- 127.0.0.1:3006:3001 # Accounts
- 127.0.0.1:3007:3002 # Public albums
- 127.0.0.1:3008:3003 # Auth
- 127.0.0.1:3009:3004 # Cast
environment:
ENTE_API_ORIGIN: https://ente-api.domain.com
ENTE_ALBUMS_ORIGIN: https://ente-album.domain.com

postgres:
image: postgres:15
environment:
POSTGRES_USER: pguser
POSTGRES_PASSWORD: MYPASSWORDHERE
POSTGRES_DB: ente_db
healthcheck:
test: pg_isready -q -d ente_db -U pguser
start_period: 40s
start_interval: 1s
volumes:
- postgres-data:/var/lib/postgresql/data

volumes:
postgres-data:
services:
museum:
image: ghcr.io/ente-io/server
ports:
- 127.0.0.1:8080:8080 # API
depends_on:
postgres:
condition: service_healthy
volumes:
- ./museum.yaml:/museum.yaml:ro
- ./data:/data:ro

# Resolve "localhost:3200" in the museum container to the minio container.
socat:
image: alpine/socat
network_mode: service:museum
depends_on: [museum]
command: "TCP-LISTEN:3200,fork,reuseaddr TCP:minio:3200"

web:
image: ghcr.io/ente-io/web
# Uncomment what you need to tweak.
ports:
- 127.0.0.1:3005:3000 # Photos web app
- 127.0.0.1:3006:3001 # Accounts
- 127.0.0.1:3007:3002 # Public albums
- 127.0.0.1:3008:3003 # Auth
- 127.0.0.1:3009:3004 # Cast
environment:
ENTE_API_ORIGIN: https://ente-api.domain.com
ENTE_ALBUMS_ORIGIN: https://ente-album.domain.com

postgres:
image: postgres:15
environment:
POSTGRES_USER: pguser
POSTGRES_PASSWORD: MYPASSWORDHERE
POSTGRES_DB: ente_db
healthcheck:
test: pg_isready -q -d ente_db -U pguser
start_period: 40s
start_interval: 1s
volumes:
- postgres-data:/var/lib/postgresql/data

volumes:
postgres-data:
My Docker compose

Did you find this page helpful?