-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.yml
142 lines (130 loc) · 3.32 KB
/
local.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
version: '3'
volumes:
canvas_local_postgres_data: {}
canvas_local_postgres_data_backups: {}
canvas_local_rabbitmq_data: {}
services:
django: &django
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
image: canvas_local_django
container_name: canvas_local_django
depends_on:
- postgres
- rabbit
- redis
- mailpit
volumes:
- ..:/workspaces
- ./backend:/app:z
- ./logs:/logs
- ./data:/data
env_file:
- .env
command: /start
postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: canvas_production_postgres
container_name: canvas_local_postgres
volumes:
# Init Database Script
- ./compose/local/postgres/init-db.sh:/docker-entrypoint-initdb.d/init-db.sh:ro
- canvas_local_postgres_data:/var/lib/postgresql/data
- canvas_local_postgres_data_backups:/backups
env_file:
- ./.envs/.local/.postgres
ports:
- 5432:5432
mailpit:
image: docker.io/axllent/mailpit:latest
container_name: canvas_local_mailpit
env_file:
- .env
redis:
image: docker.io/redis:6
container_name: canvas_local_redis
# Message-Broker Software RabbitMQ
rabbit:
image: rabbitmq:3-management-alpine
env_file:
- .env
volumes:
- canvas_local_rabbitmq_data:/var/lib/rabbitmq/
celeryworker:
<<: *django
image: canvas_local_celeryworker
container_name: canvas_local_celeryworker
depends_on:
- redis
- postgres
- mailpit
ports: []
command: /start-celeryworker
celerybeat:
<<: *django
image: canvas_local_celerybeat
container_name: canvas_local_celerybeat
depends_on:
- redis
- postgres
- mailpit
ports: []
command: /start-celerybeat
flower:
<<: *django
image: canvas_local_flower
container_name: canvas_local_flower
command: /start-flower
# Daiquiri (Userquery)
daiquiri:
image: linea/lsp_daiquiri:c42a0e0
container_name: canvas_local_daiquiri
user: "1000:1000"
command: /start.sh
env_file:
- ./compose/local/daiquiri/.env
volumes:
# Local Vars
- ./compose/local/daiquiri/local.py:/app/config/settings/local.py:ro
# Diretório de logs
- ./logs:/var/log/daiquiri
- ./logs:/var/log/celery
# Diretórios onde o backend pode manipular arquivos.
- ./data/daiquiri/files:/data/files
- ./data/daiquiri/download:/data/download
- ./data/daiquiri/upload:/data/upload
depends_on:
- postgres
- rabbit
frontend:
image: node:lts-slim
user: "1000:1000"
working_dir: /src
volumes:
- ./frontend:/src
stdin_open: true
command: yarn dev
# command: /bin/sh -c "while sleep 1000; do :; done"
# ports:
# - 3000:3000
# Servidor Web NGINX
nginx:
image: nginx:latest
container_name: canvas_local_nginx
env_file:
- .env
ports:
- ${CANVAS_PORT:-80}:80
volumes:
# Arquivo de configuração do Ngnix para este ambiente.
- ./nginx-proxy.conf:/etc/nginx/conf.d/default.conf:ro
# Diretório onde o backend manipula arquivos, e que deve ficar acessivel ao servidor web.
- ./data:/var/www/data
depends_on:
- django
- flower
- mailpit
- daiquiri