-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-dev.yml
56 lines (49 loc) · 1.19 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
# Compose file for raptor-web DEVELOPMENT.
# NOT suitable for production!
# This re-builds the application image on load without
# building in the application code. Bind mounts to local
# directories are used instead. This stack also uses the
# the django dev server rather than the production ready
# Daphne server. Use docker-compose.yml for production, you
# should only utilize this stack when modifying the application.
version: '3'
services:
mariadb:
image: mariadb:latest
container_name: mariadb
expose:
- 3306
env_file:
- stack.env
volumes:
- raptor-db:/var/lib/mysql/
rabbitmq:
image: rabbitmq:latest
container_name: rabbitmq
expose:
- 5672
raptorapp:
build:
context: .
dockerfile: Dockerfile.dev
container_name: raptorapp
expose:
- 80
volumes:
- ./:/raptorWebApp
- ./stack.env:/raptorWebApp/stack.env
depends_on:
- mariadb
- rabbitmq
nginx:
image: nginx:latest
container_name: nginx
ports:
- 443:443
volumes:
- ./docker/nginx/conf.d:/etc/nginx/conf.d/
- ./raptorWeb/media:/raptor_app/media/
depends_on:
- raptorapp
volumes:
raptor-db: