-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yml
53 lines (50 loc) · 1.5 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: "3.7"
services:
application:
restart: on-failure
build:
context: .
dockerfile: docker/application/Dockerfile
target: app-dev
volumes:
- ".:/madewithwagtail"
ports:
- "${PORT_PREFIX:-520}80:8000"
env_file:
- dev.env
environment:
VIRTUAL_HOST: "madewithwagtail.dev.springload.nz"
VIRTUAL_PORT: 8000
VIRTUAL_MEDIA_DOMAIN: "https://d1nvwtjgmbo5v5.cloudfront.net/media/"
entrypoint: ["wait-for", "database:5432", "--"]
command:
[
"/usr/local/bin/gunicorn",
"--config",
"/madewithwagtail/docker/gunicorn.py",
"--reload",
"madewithwagtail.wsgi",
]
depends_on:
- database
networks:
default:
aliases:
- "madewithwagtail.dev.springload.nz"
nginx-proxy:
database:
restart: on-failure
image: postgres:13.3-alpine
ports:
- "${PORT_PREFIX:-520}32:5432" # default 32
volumes:
- "./docker/database:/docker-entrypoint-initdb.d/:ro"
environment:
WAGTAIL_SITE_HOSTNAME: "${SITE_HOSTNAME}"
WAGTAIL_SITE_PORT: "443"
POSTGRES_DB: "madewithwagtail"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
networks:
nginx-proxy:
external: true