This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (73 loc) · 1.89 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
version: '3.4'
services:
reverse-proxy:
image: nginx:1.17.10
profiles: ["dev"]
container_name: webcams-reverse_proxy
depends_on:
- database
- frontend
- backend
- crawl
volumes:
- ./reverse_proxy/nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
# logging:
# driver: none
backend:
image: webcams/backend
profiles: ["dev"]
command: python manage.py runserver 0.0.0.0:8000
container_name: webcams-backend
depends_on:
- database
ports:
- 8000:8000
environment:
- POSTGRES_NAME=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
restart: on-failure
volumes:
- ./backend:/code
crawl:
image: webcams/crawl
profiles: ["dev"]
container_name: webcams-crawl
environment:
- CHROME_EXECUTABLE=${CHROME_EXECUTABLE}
ports:
- 8080:8080
restart: on-failure
volumes:
- ./crawl:/usr/src/app
frontend:
image: webcams/frontend
build: frontend
profiles: ["dev"]
container_name: webcams-frontend
# depends_on:
# - backend
ports:
- 9000:9000
restart: on-failure
volumes:
- ./frontend/src:/app/src
database:
image: "postgres"
profiles: ["dev"]
container_name: webcams-database
ports:
- 5432:5432
volumes:
- database:/var/lib/postgresql/data/
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
restart: on-failure
# logging:
# driver: none
volumes:
database: