forked from bearlike/REMS-For-Organisations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (47 loc) · 1.76 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
52
53
# Docker compose file for bearlike/REMS-for-Organisations
# Docker build related issues can be raised here:
# * https://github.com/bearlike/REMS-For-Organisations/issues/new?labels=Docker
# Execute by running:
# docker-compose up -d
version: '3'
services:
database:
image: mariadb:10.7.3-focal
restart: always
ports:
# We recommend commenting the ports block for increased security.
# Exposing the database port is intended only for debugging.
- 3306:3306
volumes:
- database_volume:/var/lib/mysql
- ./docker/mysql:/docker-entrypoint-initdb.d # Load SQL files during database creation
environment:
MYSQL_ROOT_PASSWORD: "0000"
MYSQL_PASSWORD: "0000"
MYSQL_DATABASE: "db_cms"
MYSQL_USER: "cmsuser"
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 15
app:
image: krishnaalagiri/rems:1.1.6
restart: on-failure
depends_on:
- database
ports:
# <host port>:<container port (default=80)>
- 8080:80
volumes:
# Replace generated_certificates_volume with an absolute path if you
# need direct access to the certificates. Usually not required.
- "generated_certificates_volume:/var/www/html/public/Generated Certificate"
- ./docker/secrets_.php:/var/www/html/members/secrets_.php
environment:
# * Edit docker/secrets_.php for other enviroiment variables.
MYSQL_HOST: database
MYSQL_PASSWORD: "0000"
MYSQL_USER: "cmsuser"
volumes:
database_volume:
generated_certificates_volume: