-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
76 lines (70 loc) · 1.58 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
67
68
69
70
71
72
73
74
75
76
version: "3.2"
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: proyecto-laravel-nginx-proxy
ports:
- "80:80"
- "443:443"
networks:
- proyecto-laravel-internal
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./certs:/etc/nginx/certs
depends_on:
- proyecto-laravel-backend
- proyecto-laravel-frontend
proyecto-laravel-backend:
build:
context: ./
dockerfile: Dockerfile_php
container_name: proyecto-laravel-backend
env_file:
- ./src/.env
command: ["run-artisanserver"]
stdin_open: true
tty: true
networks:
- proyecto-laravel-internal
ports:
- 8080:8000
environment:
- VIRTUAL_HOST=proyecto-laravel.dev
- VIRTUAL_PORT=8000
depends_on:
- redis
- mysql
volumes:
- ./src:/app/
proyecto-laravel-frontend:
build:
context: ./
dockerfile: Dockerfile_node
container_name: proyecto-laravel-frontend
env_file:
- ./src/.env
command: ["run-npmwatch"]
networks:
- proyecto-laravel-internal
volumes:
- ./src:/app/
mysql:
build:
context: ./
dockerfile: Dockerfile_mysql
container_name: proyecto-laravel-mysql
env_file:
- ./src/.env
networks:
- proyecto-laravel-internal
volumes:
- ./data/mysql:/var/lib/mysql
redis:
image: redis:3.2.8-alpine
container_name: proyecto-laravel-redis
volumes:
- ./data/redis:/data
networks:
- proyecto-laravel-internal
networks:
proyecto-laravel-internal: {}