-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
53 lines (49 loc) · 1.11 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
42
43
44
45
46
47
48
49
50
51
52
53
version: "3.9"
services:
app:
build:
context: .
dockerfile: Dockerfile
target: php_api
environment:
env: dev
satellite_index_log_perf: "yes"
DOCKER_SERVICE_ID: "{{.Service.ID}}"
DOCKER_SERVICE_NAME: "{{.Service.Name}}"
DOCKER_SERVICE_LABELS: "{{.Service.Labels}}"
DOCKER_NODE_ID: "{{.Node.ID}}"
DOCKER_NODE_HOST: "{{.Node.Hostname}}"
DOCKER_TASK_ID: "{{.Task.ID}}"
DOCKER_TASK_NAME: "{{.Task.Name}}"
DOCKER_TASK_SLOT: "{{.Task.Slot}}"
volumes:
- ./:/var/www/html
worker:
build:
context: .
dockerfile: Dockerfile
target: php_worker
command: /bin/sh -c "exit 0"
environment:
env: dev
satellite_index_log_perf: "yes"
volumes:
- ./:/var/www/html
nginx:
build:
context: ./_nginx
dockerfile: Dockerfile
depends_on:
- app
ports:
- '3333:80'
mailhog:
image: mailhog/mailhog
logging:
driver: 'none' # disable saving logs
expose:
# port for other containers
- '1025'
ports:
- "1030:1025"
- "8030:8025"