forked from GrafeasGroup/blossom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (44 loc) · 1.34 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
---
version: '3'
services:
db:
image: postgres:11.5-alpine
environment:
POSTGRES_DB: 'local_blossom'
POSTGRES_PASSWORD: 'this-is-not-prod-so-why-do-we-care'
POSTGRES_USER: 'blossom_is_the_best'
volumes:
- ./docker/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
ports:
- 5432:5432
blossom:
depends_on:
- db
build:
context: .
dockerfile: ./docker/blossom.Dockerfile
environment:
ENVIRONMENT: local
PORT: '8000'
BLOSSOM_SECRET_KEY: 'imhenrytheeigthiam.henrytheeigthiamiam.igotmarriedtothewidownextdoor.shesbeenmarriedseventimesbefore'
BLOSSOM_DB_DATABASE: 'local_blossom'
BLOSSOM_DB_USERNAME: 'blossom_is_the_best'
BLOSSOM_DB_PASSWORD: 'this-is-not-prod-so-why-do-we-care'
BLOSSOM_DB_HOST: db # Funky DNS stuff with docker-compose. See above service.
BLOSSOM_DB_PORT: '5432'
DJANGO_LOG_LEVEL: INFO
volumes:
- static:/app/blossom/static
- ./blossom/settings:/app/blossom/settings:ro
- ./docker/local_settings.py:/app/blossom/settings/local.py:ro
http:
depends_on:
- blossom # Because DNS needs to be there or this container fails
image: nginx:alpine
volumes:
- ./docker/nginx.conf:/etc/nginx/conf.d/default.conf
- static:/data/static:ro
ports:
- 8080:80
volumes:
static: