-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.prod.yml
85 lines (79 loc) · 1.65 KB
/
docker-compose.prod.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: '3'
services:
db:
environment:
POSTGRES_USER: pyi2phosts
POSTGRES_PASSWORD: pass
restart: unless-stopped
image: postgres:9.6
expose:
- "5432"
volumes:
- dbdata:/var/lib/postgresql/data
app:
environment:
DB_HOST: db
DB_NAME: pyi2phosts
DB_USER: pyi2phosts
DB_PASS: pass
proxyurl: http://i2pd:4445/
TIME_ZONE: Europe/Moscow
SECRET_KEY: fooobar_changeme
SITE_NAME: My cool registration service
DOMAIN: example.i2p
MY_B64: loooooooong b64
restart: unless-stopped
depends_on:
- db
image: py-i2phosts
build:
context: .
dockerfile: ./Dockerfile
command: uwsgi
volumes:
- static:/static
expose:
- "9000"
master:
environment:
proxyurl: http://i2pd:4445/
bob_addr: i2pd:2827
builder_hostsfile: /export/alive-hosts.txt
DB_HOST: db
DB_NAME: pyi2phosts
DB_USER: pyi2phosts
DB_PASS: pass
TIME_ZONE: Europe/Moscow
SECRET_KEY: fooobar_changeme
SITE_NAME: My cool registration service
DOMAIN: example.i2p
MY_B64: loooooooong b64
restart: unless-stopped
# app should populate db on first run so wait for it
depends_on:
- app
image: py-i2phosts
build:
context: .
dockerfile: ./Dockerfile
command: master
volumes:
- export:/export
www:
build:
context: ./docker/nginx
restart: unless-stopped
depends_on:
- app
volumes:
- static:/static
- export:/export
expose:
- "80"
volumes:
static:
export:
dbdata:
networks:
default:
internal: true