-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
49 lines (49 loc) · 1.17 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
version: "2"
services:
phorum:
build:
context: "."
args:
- mode=debug
depends_on:
- postgres
- smtp
volumes:
- "./volumes/media:/srv/app/media:rw"
- "./volumes/protected:/srv/app/protected:rw"
- "./volumes/static:/srv/app/static:rw"
environment:
PHORUM_DB_HOST: postgres
PHORUM_DB_NAME: score
PHORUM_DB_USER: score
PHORUM_DB_PASSWORD: score
PHORUM_SECRET_KEY: dummy
PHORUM_EMAIL_HOST: smtp
PHORUM_EMAIL_PORT: 1025
command: "make serve"
restart: always
nginx:
depends_on:
- phorum
image: "nginx:1.15.5"
volumes:
- "./dev/nginx:/etc/nginx/conf.d:ro"
- "./volumes/media:/srv/app/media:ro"
- "./volumes/protected:/srv/app/protected:ro"
- "./volumes/static:/srv/app/static:ro"
ports:
- "8080:80"
restart: always
postgres:
image: "postgres:10.6"
environment:
POSTGRES_USER: score
POSTGRES_PASSWORD: score
POSTGRES_DB: score
ports:
- "55432:5432"
restart: always
smtp:
image: "python:2.7-slim"
command: "python -u -m smtpd -n -c DebuggingServer 0.0.0.0:1025"
restart: always