-
Notifications
You must be signed in to change notification settings - Fork 227
/
docker-compose.dev.yml
138 lines (124 loc) · 2.98 KB
/
docker-compose.dev.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
version: '3'
services:
nginx:
image: nginx
ports:
- 80:80
volumes:
- tmp_vol:/tmp
- ./Nginx/dev.conf.d:/etc/nginx/conf.d
- ./Nginx/static_pages:/usr/share/nginx/static_pages
- ./esim-cloud-backend/static:/usr/share/nginx/django_static
- ./esim-cloud-backend/file_storage:/usr/share/nginx/django_file_storage
- ./esim-cloud-backend/kicad-symbols/:/usr/share/nginx/kicad-libs
depends_on:
- django
- eda-frontend
- arduino-frontend
eda-frontend:
image: "docker.pkg.github.com/frg-fossee/esim-cloud/eda-frontend:dev"
build: ./eda-frontend/
command: >
sh -c "npm install &&
npm start"
ports:
- "3000:3000"
volumes:
- ./eda-frontend:/code
environment:
- NODE_ENV=development
- "PUBLIC_URL=${EDA_PUBLIC_URL}"
stdin_open: true
depends_on:
- django
- celery
- redis
- db
arduino-frontend:
image: "docker.pkg.github.com/frg-fossee/esim-cloud/arduino-frontend:dev"
build: ./ArduinoFrontend/
command: >
sh -c "npm install &&
npm start"
ports:
- "4200:4200"
volumes:
- ./ArduinoFrontend:/code
environment:
- NODE_ENV=development
depends_on:
- django
- celery
- redis
- db
django:
image: "docker.pkg.github.com/frg-fossee/esim-cloud/django:dev"
build: ./esim-cloud-backend/
command: "python3 manage.py runserver 0.0.0.0:8000"
ports:
- "8000:8000"
volumes:
- ./esim-cloud-backend:/code
- run_vol:/var/run
- cache_vol:/var/cache
- tmp_vol:/tmp
depends_on:
- redis
- db
- celery
env_file:
- .env
links:
- "redis:redis_cache"
- "db:mysql"
celery:
image: "docker.pkg.github.com/frg-fossee/esim-cloud/celery:dev"
build: ./esim-cloud-backend/
command: celery -A esimCloud.celery worker -l info --concurrency=1
links:
- "redis:redis_cache"
- "db:postgres"
env_file:
- .env
volumes:
- ./esim-cloud-backend:/code
- run_vol:/var/run
- cache_vol:/var/cache
- tmp_vol:/tmp
depends_on:
- redis
- db
redis:
image: "redis:${TAG_REDIS}"
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
volumes:
- ./redis_data:/data
# Uncomment this and Change appropriate env variables to switch to mysql
# db:
# image: "mysql:${TAG_MYSQL}"
# command: --default-authentication-plugin=mysql_native_password
# env_file:
# - .env
# volumes:
# - ./mysql_data:/var/lib/mysql
db:
image: postgres
volumes:
- ./postgres_data:/var/lib/postgresql/data/
env_file:
- .env
volumes:
run_vol:
driver_opts:
type: tmpfs
device: tmpfs
cache_vol:
driver_opts:
type: tmpfs
device: tmpfs
tmp_vol:
driver_opts:
type: tmpfs
device: tmpfs