##// END OF EJS Templates
Menos errores, evitamos al Task() no arguments al inicio del servidor comentandolo en el .yml al task celery worker. El problema continúa pero al menos levanta la página sin errores, ahora no carga lo que debería por celery
Renato-TUF -
r354:d677a010f98f
parent child
Show More
@@ -1,68 +1,68
1 version: '2'
1 version: '2'
2 services:
2 services:
3 # Django app
3 # Django app
4 web:
4 web:
5 container_name: 'radarsys'
5 container_name: 'radarsys'
6 build: .
6 build: .
7 restart: always
7 restart: always
8 image: radarsys
8 image: radarsys
9 command: gunicorn radarsys.wsgi:application -w 2 -b :8000
9 command: gunicorn radarsys.wsgi:application -w 2 -b :8000
10 # command: python manage.py runserver 0.0.0.0:8030
10 # command: python manage.py runserver 0.0.0.0:8030
11 # ports:
11 # ports:
12 # - 8030:8030
12 # - 8030:8030
13 env_file: .env
13 env_file: .env
14
14
15 links:
15 links:
16 - redis
16 - redis
17 - postgres
17 - postgres
18 volumes:
18 volumes:
19 - './:/radarsys'
19 - './:/radarsys'
20 - '${DOCKER_DATA}/static:/radarsys/static'
20 - '${DOCKER_DATA}/static:/radarsys/static'
21 depends_on:
21 depends_on:
22 - redis
22 - redis
23 - postgres
23 - postgres
24
24
25 redis:
25 redis:
26 container_name: 'radarsys-redis'
26 container_name: 'radarsys-redis'
27 image: 'redis:3.2-alpine'
27 image: 'redis:3.2-alpine'
28 volumes:
28 volumes:
29 - '${DOCKER_DATA}/redis:/data'
29 - '${DOCKER_DATA}/redis:/data'
30
30
31 celery_worker:
31 # celery_worker:
32 container_name: 'radarsys-celery'
32 # container_name: 'radarsys-celery'
33 image: radarsys
33 # image: radarsys
34 env_file: .env
34 # env_file: .env
35 command: celery -A radarsys worker -l info
35 # command: celery -A radarsys worker -l info
36 volumes_from:
36 # volumes_from:
37 - web
37 # - web
38 depends_on:
38 # depends_on:
39 - web
39 # - web
40
40
41 # PostgreSQL
41 # PostgreSQL
42 postgres:
42 postgres:
43 container_name: 'radarsys-postgres'
43 container_name: 'radarsys-postgres'
44 build: ./postgres/
44 build: ./postgres/
45 volumes:
45 volumes:
46 - ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
46 - ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
47 - pgdata:/var/lib/postgresql/data
47 - pgdata:/var/lib/postgresql/data
48 # ports:
48 # ports:
49 # - 5432:5432
49 # - 5432:5432
50 env_file: .env
50 env_file: .env
51
51
52 # Web Server
52 # Web Server
53 nginx:
53 nginx:
54 container_name: 'radarsys-nginx'
54 container_name: 'radarsys-nginx'
55 restart: always
55 restart: always
56 build: ./nginx/
56 build: ./nginx/
57 ports:
57 ports:
58 - '8030:8030'
58 - '8030:8030'
59 volumes_from:
59 volumes_from:
60 - web
60 - web
61 links:
61 links:
62 - web:web
62 - web:web
63 depends_on:
63 depends_on:
64 - web
64 - web
65
65
66 volumes:
66 volumes:
67 pgdata:
67 pgdata:
68 driver: local
68 driver: local
General Comments 0
You need to be logged in to leave comments. Login now