-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yaml
56 lines (48 loc) · 987 Bytes
/
docker-compose-dev.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
44
45
46
47
48
49
50
51
52
53
54
55
version: "3"
services:
backend:
build:
dockerfile: Dockerfile
context: backend
container_name: backend
env_file: ./backend/.env.example
volumes:
- ./volumes-dev/db:/NoSQL-Scanner/db
- ./volumes-dev/static:/NoSQL-Scanner/static
- /etc/localtime:/etc/localtime:ro
networks:
- nosql-scanner
restart: always
frontend:
build:
dockerfile: Dockerfile
context: front
args:
- DOMAIN=localhost
container_name: frontend
depends_on:
- backend
networks:
- nosql-scanner
restart: always
nginx:
image: nginx:1.25
container_name: nginx
ports:
- "80:80"
depends_on:
- backend
- frontend
networks:
- nosql-scanner
volumes:
- ./volumes-dev/nginx-conf.d:/etc/nginx/conf.d
- ./volumes-dev/static:/etc/static
restart: always
volumes:
db:
static:
nginx-conf.d:
networks:
nosql-scanner:
driver: bridge