forked from overbid/nginx-php-oci8-redis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (36 loc) · 924 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
version: "2"
services:
backend:
nginx: "./nginx"
container_name: "nginx"
environment:
- TZ=Asia/Bangkok
volumes:
- "./code:/usr/share/code"
- "./nginx/conf.d:/etc/nginx/conf.d"
- "./php/run:/run/php"
ports:
- 8080:80
working_dir: "/usr/share/code"
links:
- php
network_mode: "bridge"
restart: always
php:
build: "./php"
container_name: "php"
volumes:
- "./code:/usr/share/code"
- "./php/run:/run/php"
working_dir: "/usr/share/code"
environment:
- "TZ=Asia/Bangkok"
network_mode: "bridge"
restart: always
# redis:
# build: "./redis"
# container_name: "redis"
# ports:
# - "6379:6379"
# network_mode: "bridge"
# restart: always