-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (45 loc) · 949 Bytes
/
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
version : '3'
services :
db:
build: ./mysql
restart: always
ports:
- "${MYSQL_PORT}:3306"
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
redis:
build: ./redis
ports:
- "6379:6379"
golang:
build:
context: ./golang
ports:
- "8080:8080"
volumes:
- ${PROJECT_SRC}:/var/www
environment:
- PORT=8080
nginx:
build: ./nginx
ports:
- "80:80"
- "443:443"
depends_on:
- "php"
volumes:
- "${NGINX_CONF_DIR}:/etc/nginx/conf.d"
- "${PROJECT_ROOT_DIR}:/var/www"
- "${NGINX_LOGS_DIR}:/var/log/nginx"
php:
build:
context: ./php
args:
- PHP_EXT_MYSQLI=${PHP_EXT_MYSQLI}
- PHP_EXT_REDIS=${PHP_EXT_REDIS}
- PHP_EXT_PDO_MYSQL=${PHP_EXT_PDO_MYSQL}
- PHP_VERSION=${PHP_VERSION}
ports:
- "9000:9000"
volumes:
- "${PROJECT_ROOT_DIR}:/var/www"