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