forked from dyne/zenpub-client
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
48 lines (46 loc) · 1.05 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
version: '3.5'
services:
backend:
#image: "commonspub/commonspub:stable" # use stable/production/master release of backend
image: "commonspub/commonspub:latest" # uncomment to use unstable/staging/develop backend branch
# You can also build your own backend image from the source or deploy in other ways
ports:
- "4000:4000"
- "81:80"
env_file:
- .env
- .env.secrets
depends_on:
- db
volumes:
- type: bind
source: ./uploads
target: /var/www/uploads
frontend:
build:
context: .
# dockerfile: "Dockerfile"
ports:
- "80:80"
- "443:443"
env_file:
- .env
volumes:
- type: bind
source: ./Caddyfile
target: /etc/Caddyfile
read_only: true
- type: bind
source: ./uploads
target: /frontend/uploads
db:
image: postgres:9.6-alpine
volumes:
- postgres_data:/var/lib/postgresql/data
# ports:
# - "5432:5432"
env_file:
- .env
- .env.secrets
volumes:
postgres_data: