-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.staging.yml
More file actions
45 lines (42 loc) · 963 Bytes
/
Copy pathdocker-compose.staging.yml
File metadata and controls
45 lines (42 loc) · 963 Bytes
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
services:
app:
build: .
image: agora-gestion:staging
restart: unless-stopped
env_file: .env
ports:
- "8082:80"
volumes:
- storage_data:/var/www/html/storage/app/public
depends_on:
- db
networks:
- staging
db:
image: mariadb:11
restart: unless-stopped
command:
- --innodb_buffer_pool_size=2G
- --innodb_flush_log_at_trx_commit=2
- --innodb_flush_method=O_DIRECT
- --skip-name-resolve
environment:
MARIADB_DATABASE: ${DB_DATABASE}
MARIADB_USER: ${DB_USERNAME}
MARIADB_PASSWORD: ${DB_PASSWORD}
MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
volumes:
- db_data:/var/lib/mysql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 5s
timeout: 5s
retries: 20
start_period: 30s
networks:
- staging
volumes:
storage_data:
db_data:
networks:
staging: