-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (77 loc) · 1.79 KB
/
docker-compose.yml
File metadata and controls
83 lines (77 loc) · 1.79 KB
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
services:
app:
build: .
ports:
- '3333:3333'
env_file:
- .env
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_healthy
gateways-mock:
condition: service_started
migrations:
build: .
command: sh -c "node ace migration:run --force && node ace db:seed"
restart: 'no'
env_file:
- .env
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_healthy
gateways-mock:
condition: service_started
worker:
build: .
command: sh -c "npm run queue:work"
env_file:
- .env
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_healthy
gateways-mock:
condition: service_started
mysql:
image: mysql:8
restart: unless-stopped
ports:
- ${DB_PORT:-3306}:3306
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost']
interval: 10s
timeout: 5s
retries: 5
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:-root}
MYSQL_DATABASE: ${DB_DATABASE:-betalent}
MYSQL_USER: ${DB_USER:-betalent}
MYSQL_PASSWORD: ${DB_PASSWORD:-betalent}
volumes:
- mysql-data:/var/lib/mysql
redis:
image: redis:7-alpine
restart: unless-stopped
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 10s
timeout: 5s
retries: 5
ports:
- ${REDIS_PORT:-6379}:6379
gateways-mock:
image: matheusprotzen/gateways-mock
restart: unless-stopped
ports:
- '3001:3001'
- '3002:3002'
environment:
- REMOVE_AUTH=${REMOVE_AUTH_GATEWAY:-true}
# Para nível 3, manter autenticação habilitada (não setar REMOVE_AUTH)
volumes:
mysql-data: