@@ -1,68 +1,68 | |||
|
1 | 1 | version: '2' |
|
2 | 2 | services: |
|
3 | 3 | # Django app |
|
4 | 4 | web: |
|
5 | 5 | container_name: 'radarsys' |
|
6 | 6 | build: . |
|
7 | 7 | restart: always |
|
8 | 8 | image: radarsys |
|
9 | 9 | command: gunicorn radarsys.wsgi:application -w 2 -b :8000 |
|
10 | 10 | # command: python manage.py runserver 0.0.0.0:8030 |
|
11 | 11 | # ports: |
|
12 | 12 | # - 8030:8030 |
|
13 | 13 | env_file: .env |
|
14 | 14 | |
|
15 | 15 | links: |
|
16 | 16 | - redis |
|
17 | 17 | - postgres |
|
18 | 18 | volumes: |
|
19 | 19 | - './:/radarsys' |
|
20 | 20 | - '${DOCKER_DATA}/static:/radarsys/static' |
|
21 | 21 | depends_on: |
|
22 | 22 | - redis |
|
23 | 23 | - postgres |
|
24 | 24 | |
|
25 | 25 | redis: |
|
26 | 26 | container_name: 'radarsys-redis' |
|
27 | 27 | image: 'redis:3.2-alpine' |
|
28 | 28 | volumes: |
|
29 | 29 | - '${DOCKER_DATA}/redis:/data' |
|
30 | 30 | |
|
31 | celery_worker: | |
|
32 | container_name: 'radarsys-celery' | |
|
33 | image: radarsys | |
|
34 | env_file: .env | |
|
35 | command: celery -A radarsys worker -l info | |
|
36 | volumes_from: | |
|
37 | - web | |
|
38 | depends_on: | |
|
39 | - web | |
|
31 | # celery_worker: | |
|
32 | # container_name: 'radarsys-celery' | |
|
33 | # image: radarsys | |
|
34 | # env_file: .env | |
|
35 | # command: celery -A radarsys worker -l info | |
|
36 | # volumes_from: | |
|
37 | # - web | |
|
38 | # depends_on: | |
|
39 | # - web | |
|
40 | 40 | |
|
41 | 41 | # PostgreSQL |
|
42 | 42 | postgres: |
|
43 | 43 | container_name: 'radarsys-postgres' |
|
44 | 44 | build: ./postgres/ |
|
45 | 45 | volumes: |
|
46 | 46 | - ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d |
|
47 | 47 | - pgdata:/var/lib/postgresql/data |
|
48 | 48 | # ports: |
|
49 | 49 | # - 5432:5432 |
|
50 | 50 | env_file: .env |
|
51 | 51 | |
|
52 | 52 | # Web Server |
|
53 | 53 | nginx: |
|
54 | 54 | container_name: 'radarsys-nginx' |
|
55 | 55 | restart: always |
|
56 | 56 | build: ./nginx/ |
|
57 | 57 | ports: |
|
58 | 58 | - '8030:8030' |
|
59 | 59 | volumes_from: |
|
60 | 60 | - web |
|
61 | 61 | links: |
|
62 | 62 | - web:web |
|
63 | 63 | depends_on: |
|
64 | 64 | - web |
|
65 | 65 | |
|
66 | 66 | volumes: |
|
67 | 67 | pgdata: |
|
68 | 68 | driver: local |
General Comments 0
You need to be logged in to leave comments.
Login now