-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (62 loc) · 1.67 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
57
58
59
60
61
62
63
version: '3.6'
services:
database:
image: postgres
ports:
- 5432:5432
networks:
- default
- nexus
environment:
- POSTGRES_USER=${POSTGRES_USER:-nexus}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-nexus}
- POSTGRES_DB=${POSTGRES_DB:-nexus}
nexus:
image: ${DOCKER_IMAGE_NAME:-ilha/nexus}:${TAG:-latest}
build:
context: .
dockerfile: Dockerfile
ports:
- ${ENGINE_PORT:-8000}:8000
networks:
- default
- nexus
environment:
- SECRET_KEY=${SECRET_KEY:-SK}
- DEBUG=${DEBUG:-true}
- ALLOWED_HOSTS=${ALLOWED_HOSTS:-*}
- DEFAULT_DATABASE=${DEFAULT_DATABASE:-postgres://nexus:nexus@database:5432/nexus}
- CELERY_BROKER_URL=${CELERY_BROKER_URL:-redis://redis:6379/0}
celery:
build:
context: .
dockerfile: Dockerfile
depends_on:
- nexus
- redis
- database
networks:
- default
- nexus
command: "celery -A nexus worker -l info -B"
environment:
- SECRET_KEY=${SECRET_KEY:-SK}
- DEBUG=${DEBUG:-true}
- ALLOWED_HOSTS=${ALLOWED_HOSTS:-*}
- DEFAULT_DATABASE=${DEFAULT_DATABASE:-postgres://nexus:nexus@database:5432/nexus}
- CELERY_BROKER_URL=${CELERY_BROKER_URL:-redis://redis:6379/0}
redis:
image: redis
ports:
- 6379:6379
rabbitmq:
image: rabbitmq:3.9.7-management
ports:
- "5672:5672" # Porta para conexão com o RabbitMQ
- "15672:15672" # Porta para acessar a interface de gerenciamento do RabbitMQ
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
networks:
nexus:
external: true