-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (55 loc) · 1.2 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
54
55
56
version: "3.7"
services:
db:
image: mariadb:10.4
restart: unless-stopped
ports:
- "3306:3306"
env_file:
- "env"
volumes:
- type: bind
source: "./site/sitedump.sql"
target: /docker-entrypoint-initdb.d/civicrm.sql
redis:
image: redis
restart: unless-stopped
ports:
- "6379:6379"
web:
# image: docker.pkg.github.com/nova-labs/civicrm-docker/civicrm_web:dev
build:
context: .
target: web
ports:
- "80:80"
env_file:
- "env"
volumes:
- type: tmpfs
target: /tmp
- type: bind
source: "./webroot"
target: /var/www/html
read_only: true
- type: bind
source: "./site/files"
target: /var/www/html/sites/default/files
cli:
build:
context: .
target: cli
env_file:
- "env"
# force this container to stay running so we can exec into it
entrypoint: ""
command: "sleep infinity"
volumes:
- type: tmpfs
target: /tmp
- type: bind
source: "./webroot"
target: /var/www/html
- type: bind
source: "./site/files"
target: /var/www/html/sites/default/files