forked from derpibooru/philomena
-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
129 lines (122 loc) · 2.73 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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
version: '3'
services:
init:
image: busybox
volumes:
- ./local-data/philomena:/system
- ./local-data/elastic:/elastic
restart: "no"
init-elastic:
image: busybox
volumes:
- ./local-data/elastic:/elastic
command: /bin/chown -v 1000:0 /elastic
restart: "no"
app:
build:
context: .
dockerfile: ./Dockerfile.app
environment:
- DEV_MODE
- ELASTICSEARCH_HOST
- REDIS_HOST
- REDIS_PORT
- APP_ENV
- PASSWORD_PEPPER
- OTP_SECRET_KEY
- ANONYMOUS_NAME_SALT
- IMAGE_URL_ROOT
- AVATAR_URL_ROOT
- ADVERT_URL_ROOT
- BADGE_URL_ROOT
- TAG_URL_ROOT
- CHANNEL_URL_ROOT
- IMAGE_FILE_ROOT
- ADVERT_FILE_ROOT
- AVATAR_FILE_ROOT
- BADGE_FILE_ROOT
- CHANNEL_IMAGE_FILE_ROOT
- CHANNEL_BANNER_FILE_ROOT
- TAG_FILE_ROOT
- CDN_HOST
- CAMO_HOST
- CAMO_KEY
- PROXY_HOST
- APP_DIR
- SECRET_KEY_BASE
- APP_HOSTNAME
- APP_PORT
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_HOST
- POSTGRES_DB
- POSTGRES_PORT
- SMTP_RELAY
- SMTP_PASSWORD
- SMTP_DOMAIN
- SMTP_PORT
- SMTP_USERNAME
- SEED_ON_START=true
- MAILER_ADDRESS
- TUMBLR_API_KEY
- MIX_ENV
tty: true
depends_on:
- postgres
- elasticsearch
- redis
volumes:
- ./local-data/philomena:/srv/philomena/priv/static/system
# for debugging into the container when container-start fails, umcomment the following line:
#entrypoint: ["sh", "-c", "sleep 2073600"]
gdpr-cron:
build:
context: ./docker/gdpr
dockerfile: ./Dockerfile
depends_on:
- postgres
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
- POSTGRES_HOST
- POSTGRES_PORT
postgres:
image: postgres:12.4
environment:
- POSTGRES_PASSWORD
- POSTGRES_USER
- POSTGRES_DB
volumes:
- ./local-data/postgres:/var/lib/postgresql/data
elasticsearch:
image: elasticsearch:7.8.1
volumes:
- ./local-data/elastic:/usr/share/elasticsearch/data
environment:
- discovery.type=single-node
depends_on:
- init-elastic
ulimits:
nofile:
soft: 65536
hard: 65536
redis:
image: redis:6.0.7
web:
build:
context: .
dockerfile: ./Dockerfile.web
depends_on:
- app
extra_hosts:
- kube-dns.kube-system.svc.cluster.local:127.0.0.11
environment:
- APP_HOST=app
tmpfs:
- /tmp
ports:
- '127.0.0.1:8080:8080'
volumes:
- ./local-data/philomena:/system
- ./local-data/philomena:/srv/philomena/priv/static/system