-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
46 lines (45 loc) · 1.17 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
version: '3'
services:
typecho:
image: joyqi/typecho:1.2.1-php8.0-apache
container_name: morecho-dev-server
restart: unless-stopped
depends_on:
- postgres
environment:
- TYPECHO_SITE_URL=http://localhost:8080
- TYPECHO_INSTALL=1
- TYPECHO_DB_ADAPTER=Pdo_Pgsql
- TYPECHO_DB_HOST=postgres
- TYPECHO_DB_PORT=5432
- TYPECHO_DB_USER=typecho
- TYPECHO_DB_PASSWORD=typecho
- TYPECHO_DB_DATABASE=typecho
- TYPECHO_USER_NAME=admin
- TYPECHO_USER_PASSWORD=admin
ports:
- 8080:80
networks:
- default
volumes:
- ./typecho:/app/usr
- ./:/app/usr/themes/Morecho
- ./plugins/MorechoCore:/app/usr/plugins/MorechoCore
- ./plugins/MorechoFriends:/app/usr/plugins/MorechoFriends
- ./.htaccess:/app/.htaccess
postgres:
image: postgres:13
container_name: morecho-dev-postgres
hostname: postgres
restart: unless-stopped
environment:
- POSTGRES_USER=typecho
- POSTGRES_PASSWORD=typecho
- POSTGRES_DB=typecho
networks:
- default
volumes:
- ./postgres:/var/lib/postgresql/data
networks:
default:
driver: bridge