-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (53 loc) · 1.01 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
54
55
56
57
version: "3"
services:
nginx:
build:
context: ./
dockerfile: docker/nginx.Dockerfile
args:
UID: 1000
GID: 1000
image: "php-metrics-nginx"
container_name: "php-metrics-nginx"
ports:
- "8090:8080"
volumes:
- ./:/app
networks:
- "docker_network"
links:
- php
depends_on:
- php
php:
build:
context: ./
dockerfile: docker/php.Dockerfile
args:
UID: 1000
GID: 1000
image: "php-metrics-php"
container_name: "php-metrics-php"
volumes:
- ./:/app
- ~/.composer/auth.json:/composer/auth.json
links:
- redis
environment:
- REDIS_HOST=redis
networks:
- "docker_network"
redis:
build:
context: ./
dockerfile: docker/redis.Dockerfile
args:
UID: 1000
GID: 1000
image: "php-metrics-redis"
container_name: "php-metrics-redis"
networks:
- "docker_network"
networks:
docker_network:
driver: bridge