-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
54 lines (49 loc) · 1.05 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
version: '3'
services:
app-db:
container_name: app-db
image: mongo:4
volumes:
- "app-volume:/data/db"
restart: always
ports:
- "27017:27017"
app-redis:
container_name: app-redis
image: redis:alpine
restart: always
app-nginx:
container_name: app-nginx
build:
context: ./centre/nginx/
dockerfile: dockerfile
ports:
- "3000:80"
depends_on:
- app-ui
- app-centre
app-ui:
build:
context: ./centre/frontend/
dockerfile: dockerfile.dev
container_name: app-ui
restart: always
volumes:
- ./centre/frontend/:/app/
app-centre:
build:
context: ./centre/backend/
dockerfile: dockerfile.dev
container_name: app-centre
restart: always
volumes:
- ./centre/backend/:/app/
- ./files/:/files/
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- DATABASE_URL=mongodb://host.docker.internal:27017/shadeless
- REDIS_HOST=app-redis
volumes:
app-volume:
external: false