-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
56 lines (52 loc) · 1.28 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.5'
services:
#PHP Service
control:
build:
context: .
dockerfile: Dockerfile
image: github.com/joseluis21/laravel2
container_name: control
restart: unless-stopped
tty: true
environment:
SERVICE_NAME: control
SERVICE_TAGS: dev
working_dir: /var/www
ports:
- "9001:9000"
volumes:
- ./controlpvta:/var/www
- ./php/local.ini:/usr/local/etc/php/conf.d/local.ini
networks:
- my-proxy-net
#Nginx Service
webserver2:
image: nginx
container_name: webserver2
restart: unless-stopped
tty: true
depends_on:
- control
ports:
- "8080:80"
volumes:
- ./controlpvta:/var/www
- ./nginx/conf.d/:/etc/nginx/conf.d/
# - ./nginx/:/etc/nginx/
networks:
- my-proxy-net
#Docker Networks
networks:
my-proxy-net:
external:
name: apps-network
#docker-compose up -d
#docker-compose down //Elimina todo los contenedores
#docker-compose exec control composer install
#docker-compose exec control php artisan key:generate
#docker-compose exec control php artisan migrate --seed
#docker-compose exec control php artisan config:cache
#docker-compose stop
#docker rm -f ID
#docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=12345678 -p 3306:3306 -d mysql