-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
118 lines (111 loc) · 2.46 KB
/
docker-compose.yml
File metadata and controls
118 lines (111 loc) · 2.46 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
services:
mariadb:
image: mariadb:11.2
container_name: proxy-mariadb
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: appwrite
MYSQL_USER: appwrite
MYSQL_PASSWORD: password
ports:
- "${MARIADB_PORT:-3306}:3306"
volumes:
- mariadb_data:/var/lib/mysql
networks:
- proxy
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: proxy-redis
restart: unless-stopped
ports:
- "${REDIS_PORT:-6379}:6379"
volumes:
- redis_data:/data
networks:
- proxy
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
http-proxy:
build: .
container_name: proxy-http
restart: unless-stopped
ports:
- "${HTTP_PROXY_PORT:-8080}:8080"
environment:
DB_HOST: mariadb
DB_PORT: 3306
DB_USER: appwrite
DB_PASS: password
DB_NAME: appwrite
REDIS_HOST: redis
REDIS_PORT: 6379
COMPUTE_API_URL: http://appwrite/v1/compute
COMPUTE_API_KEY: ""
depends_on:
mariadb:
condition: service_healthy
redis:
condition: service_healthy
networks:
- proxy
command: php examples/http.php
tcp-proxy:
build: .
container_name: proxy-tcp
restart: unless-stopped
ports:
- "${TCP_POSTGRES_PORT:-5432}:5432"
- "${TCP_MYSQL_PORT:-3306}:3306"
environment:
DB_HOST: mariadb
DB_PORT: 3306
DB_USER: appwrite
DB_PASS: password
DB_NAME: appwrite
REDIS_HOST: redis
REDIS_PORT: 6379
depends_on:
mariadb:
condition: service_healthy
redis:
condition: service_healthy
networks:
- proxy
command: php examples/tcp.php
smtp-proxy:
build: .
container_name: proxy-smtp
restart: unless-stopped
ports:
- "${SMTP_PROXY_PORT:-8025}:25"
environment:
DB_HOST: mariadb
DB_PORT: 3306
DB_USER: appwrite
DB_PASS: password
DB_NAME: appwrite
REDIS_HOST: redis
REDIS_PORT: 6379
depends_on:
mariadb:
condition: service_healthy
redis:
condition: service_healthy
networks:
- proxy
command: php examples/smtp.php
networks:
proxy:
driver: bridge
volumes:
mariadb_data:
redis_data: