-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
137 lines (127 loc) · 2.99 KB
/
Copy pathdocker-compose.yml
File metadata and controls
137 lines (127 loc) · 2.99 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
services:
nginx:
image: nginx:alpine
container_name: satflux.io_nginx
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "8080:80"
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./public:/var/www/public
- ./storage:/var/www/storage
depends_on:
- php
- reverb
networks:
- satflux.io
php:
build:
context: ./docker/php
dockerfile: Dockerfile
container_name: satflux.io_php
volumes:
- .:/var/www
- ./docker/php/php.ini:/usr/local/etc/php/conf.d/custom.ini
working_dir: /var/www
depends_on:
- postgres
- redis
networks:
- satflux.io
environment:
- PHP_OPCACHE_ENABLE=1
reverb:
build:
context: ./docker/php
dockerfile: Dockerfile
container_name: satflux.io_reverb
command: ["php", "artisan", "reverb:start", "--host=0.0.0.0", "--port=8080"]
volumes:
- .:/var/www
- ./docker/php/php.ini:/usr/local/etc/php/conf.d/custom.ini
working_dir: /var/www
depends_on:
- php
- redis
networks:
- satflux.io
environment:
- REVERB_SERVER_HOST=0.0.0.0
- REVERB_SERVER_PORT=8080
queue:
build:
context: ./docker/php
dockerfile: Dockerfile
container_name: satflux.io_queue
command: ["sh", "-c", "php artisan queue:work $${QUEUE_CONNECTION:-redis} --sleep=3 --tries=3 --max-time=3600 --queue=webhooks,exports"]
volumes:
- .:/var/www
- ./docker/php/php.ini:/usr/local/etc/php/conf.d/custom.ini
working_dir: /var/www
depends_on:
- php
- redis
networks:
- satflux.io
scheduler:
build:
context: ./docker/php
dockerfile: Dockerfile
container_name: satflux.io_scheduler
command: ["php", "artisan", "schedule:work"]
volumes:
- .:/var/www
- ./docker/php/php.ini:/usr/local/etc/php/conf.d/custom.ini
working_dir: /var/www
depends_on:
- php
- redis
- postgres
networks:
- satflux.io
postgres:
image: postgres:16-alpine
container_name: satflux.io_postgres
environment:
POSTGRES_DB: ${DB_DATABASE:-satflux.io}
POSTGRES_USER: ${DB_USERNAME:-satflux.io}
POSTGRES_PASSWORD: ${DB_PASSWORD:-satflux.io}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- satflux.io
redis:
image: redis:7-alpine
container_name: satflux.io_redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- satflux.io
mailpit:
image: axllent/mailpit
container_name: satflux.io_mailpit
ports:
#- "1025:1025" # SMTP server
- "8025:8025" # Web UI
networks:
- satflux.io
adminer:
image: adminer
container_name: satflux.io_adminer
ports:
- "8081:8080"
networks:
- satflux.io
depends_on:
- postgres
volumes:
postgres_data:
redis_data:
networks:
satflux.io:
driver: bridge