-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (66 loc) · 1.52 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3.1'
services:
drupal:
image: drupal:7-apache
container_name: trend_drupal
ports:
- ${EXTERNAL_LISTEN_PORT}:80
restart: always
volumes:
- "drupal-data:/var/www"
logging:
driver: "json-file"
options:
max-size: 100m
mysql:
image: mysql:5.5
container_name: trend_db
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_PASS}
volumes:
- "mysql-data:/var/lib/mysql"
logging:
driver: "json-file"
options:
max-size: 100m
drush:
container_name: trend_drush
build: ./drush
restart: always
environment:
DRUPAL_DIR: /var/www/html
BACKUP_DIR: /backups
BACKUP_PREFIX: trend-drupal
MYSQL_PASS: ${MYSQL_PASS}
CRON_SCHEDULE: ${DRUSH_BACKUP_CRON_SCHEDULE}
volumes:
- "drupal-data:/var/www"
- "drush-backups:/backups"
# we don't use this volume, but we deal with it to stop a new volume
# being created everytime we bounce the stack
- "drush-app:/app"
logging:
driver: "json-file"
options:
max-size: 100m
awscli:
container_name: trend_backup
build: ./awscli
environment:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- S3_BUCKET
- CRON_SCHEDULE=${S3_SYNC_CRON_SCHEDULE}
- BACKUP_DIR=/backups
volumes:
- "drush-backups:/backups:ro"
logging:
driver: "json-file"
options:
max-size: 100m
volumes:
drupal-data:
drush-backups:
drush-app:
mysql-data: