-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
67 lines (61 loc) · 1.44 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
version: "3.8"
services:
## entry point for treeckle app containers
app-reverse-proxy:
image: jermytan/treeckle-reverse-proxy
build:
context: ./app-reverse-proxy
volumes:
- static-volume:/app/static
networks:
- frontend
- backend
restart: always
ports:
- "80:80"
depends_on:
- frontend
- backend
## can only be accessed from same network
frontend:
image: jermytan/treeckle-frontend
build:
context: ./frontend
args:
REACT_APP_API_URL: http://localhost/api
REACT_APP_GOOGLE_CLIENT_ID: 858509158388-d943lj9isgh7oaumkoj65kqvq1ehgt14.apps.googleusercontent.com
REACT_APP_FACEBOOK_APP_ID: 498179211295170
PUBLIC_URL: http://localhost
networks:
- frontend
restart: always
## can only be accessed from same network
backend:
image: jermytan/treeckle-backend
build:
context: ./backend
command: sh -c "cd treeckle && gunicorn treeckle.wsgi:application --bind 0.0.0.0:8000"
volumes:
- static-volume:/app/static
networks:
- backend
restart: always
env_file:
- ./backend/.env.backend.local
depends_on:
- db
db:
image: postgres:13-alpine
networks:
- backend
volumes:
- postgres-data:/var/lib/postgresql/data/
env_file:
- ./backend/.env.db.local
restart: always
networks:
frontend:
backend:
volumes:
postgres-data:
static-volume: