Skip to content

Instantly share code, notes, and snippets.

@Kovah
Created March 27, 2025 08:45
Show Gist options
  • Save Kovah/23a4a32f85e040824cdf706058c9b8f0 to your computer and use it in GitHub Desktop.
Save Kovah/23a4a32f85e040824cdf706058c9b8f0 to your computer and use it in GitHub Desktop.
LinkAce 2.x with Postgres
## LINKACE CONFIGURATION
## Basic app configuration
# The app key is generated later, please leave it like that
APP_KEY=someRandomStringWith32Characters
## Configuration of the database connection
## Attention: Those settings are configured during the web setup, please do not modify them now.
# Set the database driver (mysql, pgsql, sqlsrv, sqlite)
DB_CONNECTION=pgsql
# Set the host of your database here
DB_HOST=db
# Set the port of your database here
DB_PORT=5432
# Set the database name here
DB_DATABASE=linkace_db
# Set both username and password of the user accessing the database
DB_USERNAME=linkace_test
# Wrap your password into quotes (") if it contains special characters
DB_PASSWORD="myexamplepostgrespassword"
-rwxrw-rw- .env
-rw-r--r-- docker-compose.yml
---
services:
app:
image: docker.io/linkace/linkace:latest
restart: unless-stopped
depends_on:
- db
ports:
- "0.0.0.0:80:80"
volumes:
- ./.env:/app/.env
db:
image: docker.io/library/postgres:16
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=myexamplepostgrespassword
- POSTGRES_USER=linkace_test
- POSTGRES_DB=linkace_db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment