-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfm.docker-compose.yaml
70 lines (65 loc) · 1.64 KB
/
fm.docker-compose.yaml
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
version: "3"
services:
web:
image: webdevops/php-apache-dev:7.4
expose:
- 80
working_dir: /app
environment:
WEB_DOCUMENT_ROOT: /app/public
VIRTUAL_HOST: fe-dev-tw.fm.test
HTTPS_METHOD: redirect
SSH_AUTH_SOCK: /run/host-services/ssh-auth.sock
XDEBUG_MODE: ${XDEBUG_MODE}
# Uncomment if you need to use composer v1
# COMPOSER_VERSION: 1
volumes:
- app:/app:rw,delegated
- fm_composer_cache:/root/.composer
- /run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock
- .apache/vhost.common.d:/opt/docker/etc/httpd/vhost.common.d
profiles:
- web
networks:
- fm
# Uncomment if your project has additional services,
# e.g. a redis container (see below).
# - default
node:
image: node:14
expose:
- 443
working_dir: /app
environment:
VIRTUAL_HOST: fe-dev-tw.sync.fm.test
volumes:
- app:/app:rw,delegated
command: npm run watch
links:
- web:fe-dev-tw.fm.test
networks:
- fm
profiles:
- node
# This is an example of a project-specific service. It will
# be isolated on the default network for this project and
# will not be accessible by other services on the external
# network. Make sure your web service is on both networks.
#
# redis:
# image: redis:5-alpine
# networks:
# - default
networks:
fm:
external: true
volumes:
fm_composer_cache:
external: true
app:
driver: local
driver_opts:
type: nfs
device: ":${PWD}"
o: addr=host.docker.internal,rw,nolock,hard,nointr,nfsvers=3,actimeo=2
database: ~