-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
59 lines (56 loc) · 1.37 KB
/
docker-compose.yaml
File metadata and controls
59 lines (56 loc) · 1.37 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
services:
app:
depends_on:
mysql:
condition: service_healthy
rabbit:
condition: service_healthy
build:
context: .
dockerfile: Dockerfile
target: server
deploy:
resources:
limits:
memory: 128M
cpus: '1'
reservations:
memory: 64M
cpus: '0.5'
environment:
DATABASE_URL: mysql://root:toor@mysql:3306/auth_dev
# DATABASE_URL: sqlite://auth_dev.db
PASSWORD_HASHING_SCHEME: 'bcrypt_low'
SECRET: "secret"
RABBITMQ_URL: amqp://rabbit:5672
VERIFICATION_REQUIRED: false
MESSAGE_PUBLISHER_ENGINE: rabbitmq
AUTH_STRATEGY: stateful
LOG_LEVEL: info
CLEANUP_INTERVAL_IN_MINUTES: 1
RABBITMQ_EXCHANGE_NAME: auth.dev
ports:
- "8080:8080"
mysql:
image: mysql:9.4
environment:
MYSQL_ROOT_PASSWORD: toor
ports:
- "3306:3306"
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p$$MYSQL_ROOT_PASSWORD" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
rabbit:
image: rabbitmq:4-management
ports:
- "5672:5672"
- "15672:15672"
healthcheck:
test: [ "CMD", "rabbitmq-diagnostics", "check_port_connectivity" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s