-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
43 lines (37 loc) · 900 Bytes
/
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
# Environment variables (don't fill in values here - use the .env file)
x-common-variables: &common-variables
POSTGRES_PASSWORD:
POSTGRES_USER:
POSTGRES_DB:
POSTGRES_HOST:
POSTGRES_PORT:
DATABASE_URL:
DEBUG:
services:
# Web Engine - aka Django
webengine:
image: webengine
build:
context: .
dockerfile: ./Dockerfile
environment:
<<: *common-variables
volumes:
- media:/var/app/media
ports:
- "8080:8080"
restart: unless-stopped
depends_on:
- db
# Postgres database server to store content and other data
db:
image: postgres:alpine
environment:
<<: *common-variables
volumes:
- postgres_data:/var/lib/postgresql/data/
restart: unless-stopped
volumes:
# These should be externally created NAS volumes, but for testing we can use local volumes
postgres_data: {}
media: {}