Nathan Woodburn
2292b912d2
All checks were successful
Build Docker / Build Main Image (push) Successful in 20s
34 lines
650 B
Markdown
34 lines
650 B
Markdown
# linkr
|
|
|
|
|
|
|
|
|
|
### Deployment
|
|
```
|
|
version: '3'
|
|
services:
|
|
main:
|
|
image: git.woodburn.au/nathanwoodburn/linkr:latest
|
|
depends_on:
|
|
- db
|
|
environment:
|
|
DB_HOST: db
|
|
DB_USER: main
|
|
DB_PASSWORD: your-db-password
|
|
DB_NAME: main
|
|
DNS_SERVER: 10.1.1.2
|
|
DNS_SERVER_PORT: 5350
|
|
WORKERS: 2 # number of workers to run (should be 2 * number of cores)
|
|
|
|
db:
|
|
image: linuxserver/mariadb:latest
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: your-root-password
|
|
MYSQL_DATABASE: main
|
|
MYSQL_USER: main
|
|
MYSQL_PASSWORD: your-db-password
|
|
volumes:
|
|
- db_data:/var/lib/mysql
|
|
volumes:
|
|
db_data:
|
|
``` |