-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (52 loc) · 1.38 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
version: '3'
services:
# ======================================================================
# Language
# ======================================================================
php7fpm1:
image: codestep/php7phalcon:7.2.10
container_name: docker-php7fpm1
working_dir: /usr/share/nginx/html
restart: always
environment:
- VIRTUAL_PORT=9000
- TERM=xterm
volumes:
- ./www:/usr/share/nginx/html
- ./conf.d/php7.ini:/usr/local/etc/php/php.ini
ports:
- "9000:9000"
networks:
- frontend_network
# ======================================================================
# Web Server
# ======================================================================
main:
image: nginx:1.15.6-alpine
container_name: docker-main
working_dir: /usr/share/nginx/html
restart: always
environment:
- VIRTUAL_HOST=localhost
- VIRTUAL_PORT=80
- NGINX_HOST=location
- NGINX_PORT=80
- TERM=xterm
volumes:
- ./www:/usr/share/nginx/html
- ./conf.d/nginx.conf:/etc/nginx/nginx.conf
- ./conf.d/default.conf:/etc/nginx/conf.d/default.conf
links:
- "php7fpm1:phpfpm"
ports:
- "80:80"
networks:
- frontend_network
networks:
frontend_network:
# name: frontend_network
# driver: bridge
ipam:
driver: default
config:
- subnet: 172.28.0.0/24