-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
51 lines (48 loc) · 1.2 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
version: "3"
services:
php:
image: nat1vus/php-fpm-pgsql
container_name: php-fpm-pgsql
restart: always
environment:
TZ: Asia/Shanghai
volumes:
- ./nginx/www:/var/www
depends_on:
- db
networks:
- webnet
web:
image: nginx:alpine
container_name: nginx
restart: always
environment:
TZ: Asia/Shanghai
ports:
- 80:80
- 443:443
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/www:/var/www
- ./nginx/nginx_log:/var/log/nginx
- ./nginx/web_logs:/etc/nginx/logs
- ./nginx/cert:/etc/nginx/ssl
depends_on:
- php
networks:
- webnet
db:
image: postgres:alpine
container_name: pgsql
restart: always
environment:
# POSTGRES_USER: username
POSTGRES_PASSWORD: database_pwd
POSTGRES_DB: typecho
TZ: Asia/Shanghai
volumes:
- ./dbdata:/var/lib/postgresql/data
networks:
- webnet
networks:
webnet: