-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 857 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (42 loc) · 857 Bytes
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
version: '3'
services:
web:
restart: always
build:
dockerfile: docker/web/Dockerfile
context: .
expose:
- "443"
volumes:
- ./:/var/www/project
environment:
VIRTUAL_HOST: ${HOST}
VIRTUAL_PORT: 443
LETSENCRYPT_HOST: ${HOST}
depends_on:
- php
networks:
- internal
- nginx-proxy
php:
restart: always
build:
dockerfile: docker/php/Dockerfile
context: .
args:
- NEWRELIC_LICENSE_KEY=${NEWRELIC_LICENSE_KEY}
- COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME}
- NEWRELIC_DAEMON_ADDRESS=newrelic-daemon:31339
volumes:
- ./:/var/www/project
networks:
- internal
- newrelic
networks:
internal:
nginx-proxy:
name: nginx-proxy
external: true
newrelic:
name: newrelic
external: true