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
|
2022-07-29 15:41:23 +01:00
|
|
|
init: true
|
2022-07-28 14:42:12 +01:00
|
|
|
environment:
|
|
|
|
- QUEUE_STORE_URL=redis://redis/0
|
|
|
|
- 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
|
|
|
|
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-13 08:28:45 +01:00
|
|
|
redis:
|
2022-09-13 08:42:52 +01:00
|
|
|
image: redis:6-alpine
|
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
|