forked from techcto/solodev-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (42 loc) · 873 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (42 loc) · 873 Bytes
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
# Build file for App
version: '2'
services:
app:
build:
context: .
tty: true
environment:
APP_ENV: '${APP_ENV}'
volumes:
- ./config:/var/www/app/config
- ./src:/var/www/app/src
- ./tests:/var/www/app/tests
- ./ui:/var/www/app/ui
- ./www:/var/www/app/www
- ./composer.json:/var/www/app/composer.json
- ./composer.lock:/var/www/app/composer.lock
links:
- redis
ports:
- 9000
restart: always
web:
build:
context: .
dockerfile: Dockerfile.web
environment:
APP_ENV: '${APP_ENV}'
volumes:
- ./www/__:/var/www/app/www/__
ports:
- '${HTTP_PORT}:80'
- '${HTTPS_PORT}:443'
links:
- app
depends_on:
- app
restart: always
redis:
image: redis:alpine
ports:
- '${REDIS_PORT}:6379'