You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
639 B

9 months ago
version: '3.3'
services:
web:
restart: on-failure
build:
context: ./src
dockerfile: Dockerfile
command: gunicorn conf.wsgi:application --bind 0.0.0.0:8000 --threads 4
9 months ago
volumes:
- static_volume:/home/app/web/static
- media_volume:/home/app/web/media
ports:
9 months ago
- 84:8000
9 months ago
depends_on:
- db
db:
restart: always
image: kartoza/postgis:13.0
environment:
- POSTGRES_USER=my_user
- POSTGRES_PASSWORD=mysecretpassword
- POSTGRES_DB=db
ports:
- 5432:5432
redis:
image: redis:5-alpine
volumes:
postgres_data:
static_volume:
media_volume: