2022-07-13 08:28:45 +01:00
|
|
|
version: '3.7'
|
|
|
|
services:
|
2022-07-28 14:42:12 +01:00
|
|
|
web:
|
|
|
|
build:
|
|
|
|
context: ../../
|
|
|
|
target: dev
|
|
|
|
environment:
|
|
|
|
- DEBUG=true
|
|
|
|
- SECRET_KEY=super-secret-key
|
2022-07-28 20:41:30 +01:00
|
|
|
- DATABASE_URL=postgres://website:website@db/website
|
2022-07-28 14:42:12 +01:00
|
|
|
volumes:
|
|
|
|
- ../../:/app
|
2024-01-14 12:59:31 +00:00
|
|
|
tmpfs:
|
|
|
|
- /tmp
|
2022-07-28 14:42:12 +01:00
|
|
|
depends_on:
|
|
|
|
- redis
|
2022-07-28 20:41:30 +01:00
|
|
|
- db
|
2022-07-29 09:01:43 +01:00
|
|
|
ports:
|
|
|
|
- 127.0.0.1:8000:8000
|
2023-02-21 21:41:31 +00:00
|
|
|
- 127.0.0.1:8080:8080
|
2022-07-28 14:42:12 +01:00
|
|
|
|
2022-07-28 20:41:30 +01:00
|
|
|
db:
|
2022-09-09 17:16:05 +01:00
|
|
|
image: postgres:14-alpine
|
2022-07-28 20:41:30 +01:00
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=website
|
|
|
|
- POSTGRES_USER=website
|
|
|
|
volumes:
|
|
|
|
- ./volumes/db:/var/lib/postgresql/data
|