-
-
Save Kovah/23a4a32f85e040824cdf706058c9b8f0 to your computer and use it in GitHub Desktop.
LinkAce 2.x with Postgres
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-rwxrw-rw- .env | |
-rw-r--r-- docker-compose.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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