-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (39 loc) · 883 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (39 loc) · 883 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
# This is the Build docker-compose.yml file. You can build and Run ChurchCRM
# from this file by first filling in your password and db info in the .env
# file and then running "docker-compose build", "docker-compose up" in terminal.
version: "3.6"
services:
database: #Name of DB Host
container_name: database
image: mariadb
env_file:
- .env
restart: always
volumes:
- churchcrm-db:/var/lib/mysql
redis:
container_name: redis
image: redis:alpine
ports:
- "6379:6379"
env_file:
- .env
restart: always
churchcrm:
container_name: churchcrm
build: ./
ports:
- "8080:80"
env_file:
- .env
depends_on:
- database
- redis
restart: always
volumes:
- churchcrm-files:/var/www/html
volumes:
churchcrm-files:
driver: local
churchcrm-db:
driver: local