forked from Princeton-CDH/cdh-web
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
60 lines (56 loc) · 1.58 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
54
55
56
57
58
59
60
version: "3.7"
services:
application:
restart: on-failure
build:
context: .
dockerfile: docker/application/Dockerfile
target: app-dev
volumes:
- ".:/app"
ports:
- "${PORT_PREFIX:-561}80:8000"
environment:
VIRTUAL_HOST: "cdh.dev.springload.nz"
VIRTUAL_PORT: 8000
VIRTUAL_MEDIA_DOMAIN: # Change me once set up
entrypoint: ["wait-for", "database:5432", "--"]
command:
[
"/usr/local/bin/gunicorn",
"--config",
"/app/docker/gunicorn.py",
"--reload",
"cdhweb.wsgi",
]
depends_on:
- database
- cache
networks:
default:
aliases:
- "cdh.dev.springload.nz"
nginx-proxy:
database:
restart: on-failure
image: postgres:16-alpine
platform: linux/x86_64
ports:
- "${PORT_PREFIX:-561}32:5432" # default 56132
volumes:
- "./docker/database:/docker-entrypoint-initdb.d/:ro"
environment:
WAGTAIL_SITE_HOSTNAME: "cdh.dev.springload.nz"
WAGTAIL_SITE_PORT: "443"
POSTGRES_DB: "cdhweb"
POSTGRES_USER: "cdhweb"
POSTGRES_PASSWORD: "cdhweb"
cache:
restart: on-failure
image: redis:5-alpine
platform: linux/x86_64
ports:
- "${PORT_PREFIX:-561}79:6379"
networks:
nginx-proxy:
external: true