-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yaml
35 lines (35 loc) · 962 Bytes
/
compose.yaml
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
services:
app:
hostname: example
image: civicrm/civicrm:latest
ports:
- 8760:80 # CiviCRM will be available on port 8760.
restart: unless-stopped
volumes:
- private:/var/www/html/private
- public:/var/www/html/public
- ext:/var/www/html/ext
environment:
CIVICRM_DB_HOST: db
CIVICRM_DB_PORT: 3306
CIVICRM_DB_NAME: civicrm
CIVICRM_DB_USER: civicrm
CIVICRM_DB_PASSWORD: ${MYSQL_PASSWORD}
# CIVICRM_DSN: mysql://civicrm:${MYSQL_PASSWORD}@db:3306/civicrm # Note: you can also pass database credentials as a DSN.
CIVICRM_UF_BASEURL: http://localhost:8760
db:
hostname: db
image: mariadb:10.11
restart: unless-stopped
volumes:
- db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: civicrm
MYSQL_USER: civicrm
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
volumes:
private:
public:
ext:
db: