forked from terrestris/projectsend-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (49 loc) · 1.41 KB
/
docker-compose.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
services:
web:
restart: unless-stopped
image: localhost/projectsend:latest
init: true
build:
context: .
dockerfile: Dockerfile.ubi
env_file: projectsend_env
healthcheck:
# PHP official image
#test: curl --silent --output /dev/null --fail --user-agent "Docker HealthCheck" "http://127.0.0.1" || exit 1
# PHP UBI image
test: curl --silent --output /dev/null --fail --user-agent "Docker HealthCheck" "http://127.0.0.1:8080" || exit 1
interval: 60s
retries: 5
start_period: 20s
timeout: 10s
volumes:
# PHP official image
#- /srv/projectsend/config:/config
#- /srv/projectsend/data:/data
# PHP UBI image
- projectsend-sessions:/tmp/sessions/
- /srv/projectsend/config:/opt/app-root/src/container_rw/config
- /srv/projectsend/data:/opt/app-root/src/container_rw/data
ports:
# PHP official image
# - "8081:80"
# PHP UBI image
- "8081:8080"
mariadb:
restart: unless-stopped
image: docker.io/library/mariadb:lts-ubi
init: true
healthcheck:
test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ]
start_period: 1m
start_interval: 10s
interval: 1m
timeout: 5s
retries: 3
volumes:
- /srv/projectsend/db:/var/lib/mysql
env_file: db_env
environment:
TZ: America/Sao_Paulo
volumes:
projectsend-sessions: