-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (76 loc) · 2.13 KB
/
docker-compose.yml
File metadata and controls
83 lines (76 loc) · 2.13 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
volumes:
storage_volume:
database_volume:
redis_volume:
services:
app:
image: ghcr.io/a1383n/secure-proxy:master
build:
context: .
dockerfile: Dockerfile
volumes:
- "storage_volume:/var/www/html/storage"
environment: &app_environments
TZ: ${TZ:-Asia/Tehran}
APP_KEY: ${APP_KEY}
APP_DEBUG: ${APP_DEBUG-false}
APP_ENV: ${APP_ENV-production}
CONTAINER_ROLE: "OCTANE"
OCTANE_SERVER: "frankenphp"
DB_CONNECTION: mysql
DB_HOST: database
DB_DATABASE: laravel
DB_USERNAME: root
DB_PASSWORD: password
REDIS_HOST: redis
SESSION_DRIVER: redis
QUEUE_CONNECTION: redis
CACHE_STORE: redis
ports:
- "8000:8000"
queue:
image: ghcr.io/a1383n/secure-proxy:master
build:
context: .
dockerfile: Dockerfile
environment:
<<: *app_environments
CONTAINER_ROLE: "QUEUE"
scheduler:
image: ghcr.io/a1383n/secure-proxy:master
build:
context: .
dockerfile: Dockerfile
environment:
<<: *app_environments
CONTAINER_ROLE: "SCHEDULER"
database:
image: mariadb:latest
volumes:
- "database_volume:/var/lib/mysql:Z"
environment:
TZ: Asia/Tehran
MARIADB_ROOT_PASSWORD: password
MARIADB_AUTO_UPGRADE: 1
MARIADB_DATABASE: laravel
redis:
image: redis:alpine
volumes:
- "redis_volume:/data"
environment:
TZ: Asia/Tehran
dns:
image: ghcr.io/a1383n/dns_reverse_proxy:master
tty: true
environment:
ENDPOINT_URL: http://app:8000/api/resolve
ports:
- "53:53/udp"
- "53:53/tcp"
proxy:
image: ghcr.io/a1383n/secureforward-proxy:master
environment:
API_ENDPOINT: http://app:8000/api
ports:
- "80:80"
- "443:443"