-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (53 loc) · 1.26 KB
/
docker-compose.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
version: '2'
services:
amelie-rabbitmq:
image: rabbitmq:latest
container_name: amelie-rabbitmq
environment:
RABBITMQ_DEFAULT_USER: amelie
RABBITMQ_DEFAULT_PASS: amelie
RABBITMQ_DEFAULT_VHOST: amelie
amelie-django:
build:
context: .
dockerfile: amelie-django/Dockerfile
container_name: amelie-django
user: "1000:1000"
depends_on:
- amelie-rabbitmq
links:
- "amelie-rabbitmq:rabbitmq"
volumes:
- ./static:/amelie/static
- ./media:/media
- ./photo_upload:/photo_upload
- ./config/amelie:/config:ro
amelie-celery:
build:
context: .
dockerfile: amelie-celery/Dockerfile
container_name: amelie-celery
user: "1000:1000"
depends_on:
- amelie-rabbitmq
links:
- "amelie-rabbitmq:rabbitmq"
volumes:
- ./media:/media
- ./photo_upload:/photo_upload
- ./config/amelie:/config:ro
environment:
- C_FORCE_ROOT=true
amelie-nginx:
image: nginx:latest
container_name: amelie-nginx
depends_on:
- amelie-django
links:
- "amelie-django:django"
volumes:
- ./config/nginx:/etc/nginx/conf.d:ro
- ./static:/amelie/static:ro
- ./media:/amelie/media:ro
ports:
- 80:80