-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (51 loc) · 950 Bytes
/
docker-compose.yml
File metadata and controls
57 lines (51 loc) · 950 Bytes
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
version: "3.4"
services:
db:
build:
context: "./db"
restart: always
environment:
- DB_PASS=qqq
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis
# ports:
# - "6380:6379"
restart: always
php:
build:
context: "./php"
hostname: "cm_php"
volumes:
- "app_code:/app"
depends_on:
- "db"
environment:
- MATRIX_URL
- FILE_BRIDGE_PATH
nginx:
build:
context: "./nginx"
hostname: "cm_nginx"
ports:
- "${HTTP_PORT:-80}:80"
volumes:
- "app_code:/app"
depends_on:
- "php"
environment:
PS1: "\\u@\\h:\\w\\$$ "
networks:
default:
aliases:
- ${MATRIX_URL}
volumes:
app_code:
db_data: