init
This commit is contained in:
commit
319b663694
11 changed files with 3722 additions and 0 deletions
25
docker-compose.yml
Normal file
25
docker-compose.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
services:
|
||||
webarc:
|
||||
build: .
|
||||
ports:
|
||||
- "8080:8000"
|
||||
depends_on:
|
||||
- postgres
|
||||
volumes:
|
||||
- ./websites:/websites
|
||||
environment:
|
||||
- "DATABASE_URL=postgres://user:pass@postgres/webarc"
|
||||
- "RUST_LOG=info"
|
||||
- "ROCKET_ADDRESS=0.0.0.0"
|
||||
|
||||
postgres:
|
||||
image: timescale/timescaledb:latest-pg16
|
||||
restart: always
|
||||
ports:
|
||||
- 5432:5432
|
||||
volumes:
|
||||
- ./db:/var/lib/postgresql/data/
|
||||
environment:
|
||||
- POSTGRES_USER=user
|
||||
- POSTGRES_PASSWORD=pass
|
||||
- POSTGRES_DB=webarc
|
Loading…
Add table
Add a link
Reference in a new issue