-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-prod.yml
36 lines (36 loc) · 1.15 KB
/
docker-compose-prod.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
services:
easypost-tools-ui:
build:
args:
PROD: true
deploy:
replicas: 2
mem_limit: '512m'
healthcheck:
test: ['CMD', 'curl', '--silent', '--output', '/dev/null', '--show-error', '--fail', 'http://localhost/up']
start_period: 10s
start_interval: 1s
interval: 30s
timeout: 10s
retries: 3
labels:
- 'traefik.http.routers.easyposttools.rule=Host(`easyposttools.com`) || Host(`www.easyposttools.com`)'
- 'traefik.http.routers.easyposttools.tls=true'
- 'traefik.http.routers.easyposttools.tls.certresolver=letsencrypt'
depends_on:
easypost-tools-ui-db:
condition: service_healthy
volumes:
- ./src/storage/logs:/var/www/html/storage/logs
- ./src/storage/app/public:/var/www/html/storage/app/public
easypost-tools-ui-db:
mem_limit: '768m'
healthcheck:
test:
['CMD', 'mariadb', '-u${MARIADB_USER}', '-p${MARIADB_PASSWORD}', '-D${MARIADB_DATABASE}', '-e', 'show tables;']
# Need to account for upgrade times at startup
start_period: 30s
start_interval: 1s
interval: 30s
timeout: 10s
retries: 3