This repository was archived by the owner on Jan 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (58 loc) · 1.71 KB
/
docker-compose.yml
File metadata and controls
64 lines (58 loc) · 1.71 KB
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
version: '2'
services:
nginx:
image: nginx:stable-alpine
ports:
- "80:80" # main materia
- "8008:8008" # static files
volumes:
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./app/public:/var/www/html/public:ro
- uploaded_media:/usr/share/media:ro
links:
- phpfpm
phpfpm:
image: ucfopen/materia-web-base:latest
environment:
- FUEL_ENV=development
- DB_HOST=mysql
- DB_NAME=materia
- DB_USER=materia
- DB_PASS=odin
volumes:
- ./app:/var/www/html:rw
- ./config/php/php.ini:/usr/local/etc/php/conf.d/php.ini:ro
- ./config/php/php-extensions-runtime.ini:/usr/local/etc/php/conf.d/php-extensions-runtime.ini:ro
- uploaded_media:/var/www/html/fuel/app/media
links:
- mysql
- memcached
- fakes3
mysql:
image: mysql:5.7.18
environment:
- MYSQL_ROOT_PASSWORD=drRoots
- MYSQL_USER=materia
- MYSQL_PASSWORD=odin
- MYSQL_DATABASE=materia
ports:
- "3306:3306" # allow mysql access from the host - use /etc/hosts to set mysql to your docker-machine ip
volumes:
- "./config/mysql/01_create_test.sql:/docker-entrypoint-initdb.d/01_create_test.sql"
memcached:
image: memcached:1.4.27-alpine
fakes3:
image: ucfopen/materia-fake-s3:latest
environment:
- INPUT_BUCKET=fakes3_uploads
- OUTPUT_BUCKET=fakes3_assets
- OUTPUT_MAX_DIMENSIONS=75x75, 0x0
- OUTPUT_BASE_KEY=media
- IS_FAKES3=True
ports:
- "10001:10001"
volumes:
- uploaded_media:/s3mnt/fakes3_root/fakes3_uploads/media/
volumes:
# static_files: {} # compiled js/css and uploaded widgets
uploaded_media: {} # uploaded media files