-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
43 lines (40 loc) · 936 Bytes
/
docker-compose.yaml
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
version: "3"
services:
frontend:
restart: always
build: ./frontend
volumes:
- ./frontend:/dreamdrugs/frontend
- /dreamdrugs/frontend/node_modules
environment:
- NODE_ENV=development
- BACKEND_DOMAIN=backend
- REDIS_HOST=database
- REDIS_PASSWORD=pass1234
backend:
restart: always
build: ./backend
volumes:
- ./backend:/dreamdrugs/backend
environment:
- PYTHONUNBUFFERED=1
- DEBUG=1
- BACKEND_PORT=6000
- REDIS_HOST=database
- REDIS_PASSWORD=pass1234
database:
restart: always
image: redis
command: redis-server --requirepass pass1234
nginx:
image: nginx:alpine
restart: always
ports:
- 80:80
- 443:443
links:
- backend
- frontend
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./certificate-generation.sh:/docker-entrypoint.d/certificate-generation.sh