-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (47 loc) · 1.24 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:
pg:
image: postgres:13.3
environment:
- POSTGRES_USER=beevenue
- POSTGRES_PASSWORD=beevenue
ports:
- "15432:5432"
volumes:
- ./pg-data:/var/lib/postgresql/data:rw
redis:
build:
context: .
dockerfile: ./script/redis.Dockerfile
volumes:
- ./redis-data:/var/lib/redis:rw
ports:
- "6379:6379"
nginx:
build:
context: .
dockerfile: ./script/nginx.Dockerfile
volumes:
# By mounting these files locally, we can use "sendfile" support to send the files
# directly from this container instead of round-tripping through "app".
- ./media:/beevenue/media:ro
- ./thumbs:/beevenue/thumbs:ro
ports:
- "7000:8000"
restart: always
depends_on:
- app
app:
# Workaround to allow hosting beevenue on a docker host that is also its own DNS.
# In that case, DNS forwarding from host to container isn't trivial, so this is
# the easy, hacky way to allow DNS resolution of domains like googleapis.com
# which is necessary for social login.
dns: 8.8.8.8
build:
context: .
dockerfile: ./script/app.Dockerfile
volumes:
- .:/beevenue
depends_on:
- pg
- redis