forked from phundament/app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (51 loc) · 1.17 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
# Phundament 4 - Local Development Stack
# ======================================
# Application services
# --------------------
# container to run one-off commands - a dockerized shell
appcli:
# should be replaced with image, eg. <project_name>_appsrc
build: .
# host-volume for local development
volumes:
- '.:/app'
links:
- 'appnginx:WEB'
- 'mariadb:DB'
command: 'sh src/run.sh'
# The php-fpm server for interpreting php code
appfpm:
image: phundament/php:5.6-fpm-4.0.0-rc3-dev
# host-volume for local development
volumes:
- '.:/app'
links:
- 'mariadb:DB'
# The nginx server for serving static files directly
appnginx:
image: schmunk42/nginx:1.7
links:
- 'appfpm:PHPFPM'
# host-volume for local development
volumes:
- '.:/app'
#- 'build/nginx/run.sh:/root/run.sh'
ports:
- '80'
environment:
VIRTUAL_HOST: '~^dev\.myapp\.'
# Build-container with CLI and source-code
appsrc:
build: .
command: 'tail -f /dev/null'
# host-volume for local development
volumes:
- '.:/app'
# Data Services
# -------------
mariadb:
image: tutum/mariadb:10.0
ports:
- '3306'
environment:
MARIADB_PASS: secretadmin