-
Notifications
You must be signed in to change notification settings - Fork 32
/
docker-compose.yml
70 lines (61 loc) · 1.64 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
# docker-compose.yml
version: '2.1'
services:
nginx:
image: nginx:alpine
ports:
- 80:80
depends_on:
- craft
volumes_from:
- craft
volumes:
- ./default.conf:/etc/nginx/conf.d/default.conf # nginx configuration (see below)
- ./assets:/var/www/html/web/assets # For static assets (media, js and css). We don't need PHP for them.
craft:
image: urbantrout/craftcms:postgresql
depends_on:
- postgres
volumes:
- ./backups:/var/www/html/storage/backups
- ./templates:/var/www/html/templates # Craft CMS template files
environment:
DEPENDENCIES: >- # additional composer packages (must be comma separated)
yiisoft/yii2-redis,
craftcms/redactor,
CRAFTCMS_EMAIL: harald@urbantrout.io
CRAFTCMS_USERNAME: admin
CRAFTCMS_PASSWORD: super-secret-password
CRAFTCMS_SITENAME: Craft CMS Installation
CRAFTCMS_LANGUAGE: de-AT
AUTO_UPDATE: 'false'
REDIS_HOST: redis
SESSION_DRIVER: redis
CACHE_DRIVER: redis
DB_DSN: pgsql:host=postgres;dbname=craft
DB_SERVER: postgres
DB_NAME: craft
DB_USER: craft
DB_PASSWORD: secret
DB_DATABASE: craft
DB_SCHEMA: public
DB_DRIVER: pgsql
DB_PORT: 5432
DB_TABLE_PREFIX: ut
postgres:
image: postgres:9.6-alpine
environment:
POSTGRES_ROOT_PASSWORD: root
POSTGRES_USER: craft
POSTGRES_PASSWORD: secret
POSTGRES_DB: craft
volumes:
# Persistent data
- pgdata:/var/lib/postgresql/data
redis:
image: redis:4-alpine
volumes:
- redisdata:/data
volumes:
pgdata:
redisdata: