-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
32 lines (30 loc) · 1018 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# The docker-compose.yml file is __only__ used for local development.
# This means that changes to this file will not affect cloud deployments in any way.
# Read more at https://docs.divio.com/reference/docker-docker-compose/
services:
web:
build: .
ports:
- "8000:80"
volumes:
- ".:/app:rw"
- "./data:/data:rw"
- "./staticfiles_collected:/app/staticfiles_collected/"
environment:
DATABASE_URL: postgres://postgres@database_default:5432/db
links:
- "database_default"
# The following command is used to start the local development server.
# Removing this line will mimic the deployment behaviour on Divio Cloud.
command: python manage.py runserver 0.0.0.0:80
database_default:
image: postgres:15.7-alpine
environment:
POSTGRES_DB: "db"
POSTGRES_HOST_AUTH_METHOD: "trust"
SERVICE_MANAGER: "fsm-postgres"
volumes:
- ".:/app:rw"
- "database-default:/var/lib/postgresql/data/"
volumes:
database-default: