-
Notifications
You must be signed in to change notification settings - Fork 31
/
docker-compose.yml
53 lines (47 loc) · 1.15 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
version: '2'
volumes:
craftcms-data:
postgresql-data:
craftcms-logs:
services:
web:
image: wyveo/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
REDIS_PORT_6379_TCP: tcp://redis:6379
# 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:12.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:6.0.10-alpine
volumes:
- /data:/data