forked from pacoorozco/probind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (60 loc) · 1.48 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
58
59
60
61
62
63
64
65
66
version: '3'
volumes:
dbdata:
driver: local
services:
### APP: Application server #########################################
app:
build:
context: ./
dockerfile: docker/app/Dockerfile
args:
- DOCKER_PROBIND_UID=${DOCKER_PROBIND_UID:-1000}
working_dir: /var/www
volumes:
- ./:/var/www
environment:
DB_HOST: database
REDIS_HOST: redis
DB_DATABASE: laravel
DB_USERNAME: laravel
DB_PASSWORD: secret
ports:
- "9000:9000"
depends_on:
- database
### WEB: Web server #################################################
web:
build:
context: ./
dockerfile: docker/web/Dockerfile
args:
- DOCKER_PROBIND_UID=${DOCKER_PROBIND_UID:-1000}
volumes:
- ./:/var/www:ro
ports:
- "80:80"
depends_on:
- app
### DATABASE: Database server #############################################
database:
image: mysql:5
volumes:
- dbdata:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: verysecret
MYSQL_DATABASE: laravel
MYSQL_USER: laravel
MYSQL_PASSWORD: secret
ports:
- "3306:3306"
### DNS: DNS server ######################################################
dns-server:
build:
context: ./
dockerfile: docker/dns/Dockerfile
ports:
- "5301:53"
- "2201:22"
depends_on:
- app