forked from pacoorozco/probind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (51 loc) · 1.26 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
version: '3'
volumes:
dbdata:
driver: local
services:
### APP: Application server #########################################
app:
build:
context: ./
dockerfile: docker/app/Dockerfile
working_dir: /var/www
volumes:
- ./:/var/www
environment:
DB_HOST: database
REDIS_HOST: redis
DB_DATABASE: homestead
DB_USERNAME: homestead
DB_PASSWORD: secret
ports:
- "9000:9000"
depends_on:
- database
### WEB: Web server #################################################
web:
build:
context: ./
dockerfile: docker/web/Dockerfile
args:
- PHP_UPSTREAM_CONTAINER=app
- PHP_UPSTREAM_PORT=9000
volumes:
- ./docker/web/sites:/etc/nginx/sites-available:ro
- ./:/var/www:ro
ports:
- "80:80"
- "443:443"
depends_on:
- app
### DATABASE: Database server #############################################
database:
image: mysql:5
volumes:
- dbdata:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: verysecret
MYSQL_DATABASE: homestead
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
ports:
- "3306:3306"