-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (45 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
50 lines (45 loc) · 1.38 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: '2.3'
x-environment:
&default-environment
# Route that should be used locally, if you are using pygmy, this route *must* end with .docker.amazee.io
LAGOON_ROUTE: &default-url http://${COMPOSE_PROJECT_NAME:-lagoon-wagtail-example}.docker.amazee.io
DATABASE_URL: postgres://${POSTGRES_USERNAME:-lagoon}:${POSTGRES_PASSWORD:-lagoon}@${POSTGRES_HOST:-postgres}:${POSTGRES_PORT:-5432}/${POSTGRES_DATABASE:-lagoon}
# Uncomment if you like to have the system behave like in production
#LAGOON_ENVIRONMENT_TYPE: production
# Uncomment to enable xdebug and then restart via `docker compose up -d`
#XDEBUG_ENABLE: "true"
volumes:
postgres-data:
wagtail-media:
services:
python:
build:
context: .
dockerfile: lagoon/Dockerfile
labels:
lagoon.type: python
ports:
- "8800"
environment:
<< : *default-environment
PYTHONPATH: "/code/mysite:/mysite:$PYTHONPATH"
volumes:
- ./mysite:/code/mysite:delegated
# - wagtail-media:/code/mysite/media # Enable this to store media locally in a volume
depends_on:
- postgres
networks:
- amazeeio-network
- default
postgres:
image: uselagoon/postgres-15:latest
labels:
lagoon.type: postgres
volumes:
- postgres-data:/var/lib/postgresql/data
restart: "no"
ports:
- "5432"
networks:
amazeeio-network:
external: true