-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
41 lines (39 loc) · 1.06 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
version: '3.5'
networks:
public:
external:
name: traefik_webgateway
services:
app:
build:
args:
- XDEBUG=${XDEBUG}
- NODE_JS=${NODE_JS}
- YARN=${YARN}
- WP_CLI=${WP_CLI}
- RELEASE_VERSION=${RELEASE_VERSION}
- USER_ID=${USER_ID}
- GROUP_ID=${GROUP_ID}
- LOCALE=${LOCALE}
- TIME_ZONE=${TIME_ZONE}
- BUILD_DEPS=${BUILD_DEPS}
- PHP_EXT_CONFIGURE=${PHP_EXT_CONFIGURE}
- PHP_EXT_INSTALL=${PHP_EXT_INSTALL}
context: .
container_name: docker-project
#extra_hosts:
#image: docker-project
environment:
- APACHE_DOCUMENT_ROOT=/var/www/public
labels:
- "traefik.enable=true"
- "traefik.http.routers.docker-project.entrypoints=websecure"
- "traefik.http.routers.docker-project.rule=Host(`docker-project`)"
- "traefik.http.routers.docker-project.tls=true"
networks:
- public
working_dir: /var/www
volumes:
#- ~/.composer:/home/app/.composer
#- ~/.cache:/home/app/.cache
- ./www:/var/www