You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
# docker-compose.yml
|
|
# linkding Docker Hub: https://hub.docker.com/r/sissbruecker/linkding
|
|
# The linkding WebUI can be found at http://<HOST_IP>:<LINKDING_WEBUI_PORT>
|
|
# postgres Docker Hub: https://hub.docker.com/_/postgres
|
|
|
|
volumes:
|
|
db:
|
|
|
|
networks:
|
|
<NETWORK_NAME>:
|
|
external: true
|
|
|
|
services:
|
|
linkding:
|
|
container_name: linkding
|
|
depends_on:
|
|
- linkding-db
|
|
environment:
|
|
- LD_DB_ENGINE=postgres
|
|
- LD_DB_DATABASE=linkding
|
|
- LD_DB_USER=linkding
|
|
- LD_DB_PASSWORD=<PASSWORD>
|
|
- LD_DB_HOST=linkding-db
|
|
image: sissbruecker/linkding:<VERSION_TAG>
|
|
networks:
|
|
- <NETWORK_NAME>
|
|
ports:
|
|
- "9090:9090" # linkding WebUI Port
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./linkding/data:/etc/linkding/data
|
|
linkding-db:
|
|
container_name: linkding-db
|
|
environment:
|
|
- POSTGRES_DB=linkding
|
|
- POSTGRES_USER=linkding
|
|
- POSTGRES_PASSWORD=<PASSWORD>
|
|
image: postgres:<VERISON_TAG>
|
|
labels:
|
|
- "com.centurylinklabs.watchtower.enable=false"
|
|
logging:
|
|
driver: "none"
|
|
networks:
|
|
- <NETWORK_NAME>
|
|
restart: unless-stopped
|
|
volumes:
|
|
- db:/var/lib/postgresql/data |