-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
30 lines (28 loc) · 1.16 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
# ---- Unix ----
# systemctl docker start
# docker run --rm --interactive --tty --volume #PWD:/app composer create-project --ignore-platform-reqs --no-dev codelinered/gulp-skeleton gulp-skeleton "dev-production" && cd gulp-skeleton && docker-compose up -d && xdg-open http://localhost:7701
# ---- Windows CMD ----
# "c:\path\to\Docker Desktop.exe"
# docker run --rm --interactive --tty --volume %cd%:/app composer create-project --ignore-platform-reqs --no-dev codelinered/gulp-skeleton gulp-skeleton "dev-production" && cd gulp-skeleton && docker-compose up -d && start http://localhost:7701
volumes:
logs:
driver: local
# ---- Unix ----
# docker-compose up -d && xdg-open http://localhost:7701
# ---- Windows CMD ----
# docker-compose up -d && start http://localhost:7701
services:
# http://localhost:7701
# docker exec -ti gulp-skeleton php --version
webserver:
image: php:8-alpine
container_name: gulp-skeleton
working_dir: /var/www
command: php -S 0.0.0.0:80 -t public
environment:
docker: "true"
ports:
- 7701:80
volumes:
- .:/var/www
- logs:/var/www/logs