Добавить docker-compose.yml
This commit is contained in:
commit
fc2d58f0bc
28
docker-compose.yml
Normal file
28
docker-compose.yml
Normal file
@ -0,0 +1,28 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
env_file: .env
|
||||
restart: always
|
||||
volumes:
|
||||
- ./pgdata:/var/lib/postgresql/data
|
||||
networks:
|
||||
- network1
|
||||
linkwarden:
|
||||
env_file: .env
|
||||
environment:
|
||||
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres
|
||||
restart: always
|
||||
# build: . # uncomment this line to build from source
|
||||
image: ghcr.io/linkwarden/linkwarden:latest # comment this line to build from source
|
||||
ports:
|
||||
- 3489:3000
|
||||
volumes:
|
||||
- ./data:/data/data
|
||||
networks:
|
||||
- network1
|
||||
depends_on:
|
||||
- postgres
|
||||
networks:
|
||||
network1:
|
||||
name: web
|
||||
external: true
|
Loading…
x
Reference in New Issue
Block a user