Anki Sync Server

Has anyone set this app-server up successfully? The Github shows Docker Compose configuration but im wanting to know if it must be on the listed ports or if you can configure your own ports.

services:
anki-sync-server:
image: chrislongros/anki-sync-server-enhanced:latest
container_name: anki-sync
ports:
- “8080:8080”   # Sync server (HTTP)
- “8443:8443”   # Sync server (HTTPS, if TLS_ENABLED)
- “8081:8081”   # Dashboard (optional)
- “9090:9090”   # Metrics (optional)
environment:
- SYNC_USER1=alice:password1
- SYNC_USER2=bob:password2
- TZ=Europe/Berlin
- BACKUP_ENABLED=true
- METRICS_ENABLED=true
- DASHBOARD_ENABLED=true
volumes:
- anki_data:/data
- anki_backups:/backups
restart: unless-stopped

volumes:
anki_data:
anki_backups:

In the notes on the Apps page on the installed server, it reads..


Container: [anki]

Running user/group(s)

User: 568

Group: 568

Supplementary Groups: apps

Is it.. wanting its group that specific ID?

Leave the container ports the same but change the host ports to something higher and available. TrueNAS seems to use ports in the 30000+ range for apps from the catalog. Host port is left of the colon.

Then if you like use a reverse proxy to publish the UI at 80/443 with SSL termination.

Also you will probably want to change the host path of the volumes from e.g. anki_data to something like /mnt/mypool/apps/anki/data.

HTH,
Patrick

I actually did make my own pools for the volumes pretty much like your suggestion.
Not using a reverse proxy as of yet.

Also left the host port TrueNas set as default. Didnt see an option (or missed it) to change the container ‘ports’. Either way, it wont start.

[edit] neverminded, i found the user id and group id and they are default. Though i did not make an account for it with that ID. Is that what its wanting?

The user ID and group ID belong to the entire “apps” subsystem in TrueNAS. They are ok the way they are.

Did you create the two datasets and map the full paths to the volumes? Also when creating the datasets did you set the share type to “apps”?

Going back thought the settings again, im seeing the Group ID of the app, the GID of the group, and the Port number of the app dont match. But comparing it to my jellyfin instance, all three of those do.

Then there is this message for the GID..

The Group ID (GID) is a unique number used to identify a Unix group.
Enter a number above 1000 for a group with user accounts.
Groups used by a service must have an ID that matches the default port number used by the service.

I cant edit the GID to have it match the port number of the app/server. But thats the only thing that (so far) stands out to me that could be the issue. But not sure if this would count as a ‘service’.

Also when creating the datasets did you set the share type to “apps”?

I did the main dataset as apps but i may have made the two datasets under it as general. But I have the User - apps in the datasets.

Still stuck :frowning: