-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·46 lines (45 loc) · 1.19 KB
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·46 lines (45 loc) · 1.19 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
services:
tusk-api:
container_name: tusk-api
build:
context: .
dockerfile: Dockerfile
ports:
- "9002:8081"
environment:
- APP_ENV=production
- APP_NAME=${APP_NAME}
- APP_MODE=${APP_MODE}
- SERVER_PORT=${SERVER_PORT}
- DB_DRIVER=${DB_DRIVER}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASS}
- JWT_SECRET=${JWT_SECRET}
- ACCESS_TOKEN_TTL=${ACCESS_TOKEN_TTL}
- MAIL_HOST=${MAIL_HOST}
- MAIL_PORT=${MAIL_PORT}
- MAIL_USERNAME=${MAIL_USERNAME}
- MAIL_PASSWORD=${MAIL_PASSWORD}
- MAIL_SENDER=${MAIL_SENDER}
volumes:
- /var/www/html/domains/tusk:/app
restart: unless-stopped
networks:
tigerforge-db:
ipv4_address: 172.20.0.9
healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:8081/health"]
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8081/health"]
interval: 30s
timeout: 10s
retries: 5
logging:
options:
max-size: "10m"
max-file: "3"
networks:
tigerforge-db:
external: true