forked from wyveo/craftcms-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (46 loc) · 1.11 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
version: '2'
volumes:
craftcms-data:
postgresql-data:
craftcms-logs:
services:
web:
image: alexjcollins/craftcms-docker:latest
ports:
- 80:80
volumes:
- craftcms-logs:/var/log
- craftcms-data:/usr/share/nginx
links:
- postgres
- redis
# env vars are replaced in .env
environment:
# Set locale to UTF-8 (https://oncletom.io/2015/docker-encoding/)
LANG: C.UTF-8
# REDIS is linked
REDIS_HOST: redis
# DB is linked
DB_DRIVER: pgsql
DB_SERVER: postgres
DB_DATABASE: craft3
DB_PASSWORD: secret
PGPASSWORD: secret
DB_SCHEMA: public
DB_PORT: '5432'
DB_USER: craft3
LANG: C.UTF-8
postgres:
image: postgres:10.5
environment:
POSTGRES_USER: craft3
POSTGRES_PASSWORD: secret
POSTGRES_DB: craft3
POSTGRES_INITDB_ARGS: "-E UTF8"
volumes:
# Persistent data
- postgresql-data:/var/lib/postgresql/data
redis:
image: redis:4.0.11-alpine
volumes:
- /data:/data