forked from reflow-project/weloop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.pi.yml
48 lines (46 loc) · 1.06 KB
/
docker-compose.pi.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
# On a Raspbery Pi, you must first build your own backend Docker image from the source
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.pi"
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: