-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
executable file
·77 lines (67 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
68
69
70
71
72
73
74
75
version: '3.3'
networks:
mynetwork:
driver: bridge
services:
# PostgreSQL service
database:
image: postgis/postgis
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
networks:
- mynetwork
container_name: postgres_container
# Django service
django:
build:
context: backend/.
dockerfile: Dockerfile
image: django_postgis_app
privileged: true
env_file: .env
depends_on:
- database
ports:
- "8000:8000"
- "5037:5037"
networks:
- mynetwork
volumes:
- ./backend:/app # Mount your project directory to the /app directory in the container
- /dev/bus/usb:/dev/bus/usb
container_name: django_container
react_frontend:
build:
context: frontend/.
dockerfile: Dockerfile
image: react_frontend_app
environment:
- REACT_APP_URL=http://django:8000/
ports:
- "3000:3000"
networks:
- mynetwork
volumes:
- ./frontend:/app/frontend/
depends_on:
- django
container_name: react_container
# RabbitMQ service
# # Redis service
# rabbitmq:
# image: rabbitmq
# environment:
# - RABBITMQ_DEFAULT_USER=rabbit
# - RABBITMQ_DEFAULT_PASS=rabbit
# ports:
# - "5672:5672"
# - "15672:15672"
# networks:
# - mynetwork
# container_name: rabbitmq_container
#
#