-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
85 lines (78 loc) · 2.21 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: '3'
services:
webserver:
image: nginx:alpine
container_name: ${WEBSERVER_CONTAINER_NAME}
volumes:
- ./app/html:/usr/share/nginx/html
- ./lets-encrypt/certs:/usr/share/nginx/certs:rw
- ./lets-encrypt/www:/usr/share/nginx/letsencrypt
- ./nginx/conf:/etc/nginx/conf.d:ro
- ./nginx/log:/var/log/nginx
- app:/var/www:rw
ports:
- ${WEBSERVER_EXPOSE_PORT}:80
- ${WEBSERVER_SSL_EXPOSE_PORT}:443
restart: always
mysql:
image: mariadb:10
container_name: ${MYSQL_CONTAINER_NAME}
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
TZ: Asia/Bangkok
# volumes:
# - ./mariadb/storage/mysql:/var/lib/mysql
# Uncomment lines below if you want to make mariadb server be available outside the bridge
# ports:
# - ${MYSQL_EXPOSE_PORT}:3306
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: always
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: ${PHPMYADMIN_CONTAINER_NAME}
links:
- mysql:db
depends_on:
- mysql
ports:
- ${PHPMYADMIN_EXPOSE_PORT}:80
restart: always
api:
image: api
container_name: ${API_CONTAINER_NAME}
build:
dockerfile: Dockerfile
context: ${API_CONTEXT}
volumes:
- ./php-fpm/custom.ini:/usr/local/etc/php/conf.d/custom.ini
- app:/var/www
- vendor
# Uncomment lines below if you want to use mssql server
sqlsrv:
image: microsoft/mssql-server-linux
container_name: ${MSSQL_CONTAINER_NAME}
restart: always
environment:
ACCEPT_EULA: Y
SA_PASSWORD: ${MSSQL_SA_PASSWORD}
# MSSQL_PID = Developer, Express, Standard, Enterprise, EnterpriseCore, <valid product id>
MSSQL_PID: ${MSSQL_PID}
# ports:
# - ${MSSQL_EXPOSE_PORT}:1433
restart: always
# Uncomment lines below if you want to use vpn network
# vpn:
# image: auchandirect/forticlient
# container_name: ${VPN_CONTAINER_NAME}
# privileged: true
# environment:
# VPNADDR: ${VPN_ADDRESS}
# VPNUSER: ${VPN_USERNAME}
# VPNPASS: ${VPN_PASSWORD}
volumes:
app:
networks:
default:
external:
name: ${NETWORK_NAME}