-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (71 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
76 lines (71 loc) · 1.4 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
services:
proxy:
image: nginx:alpine
ports:
- '80:80'
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- client
- server
restart: unless-stopped
client:
build:
context: ./client
dockerfile: Dockerfile
restart: unless-stopped
expose:
- '8080'
server:
build:
context: ./server
dockerfile: Dockerfile
env_file:
- .env.laravel
depends_on:
- db
restart: unless-stopped
expose:
- '80'
volumes:
- app_storage:/app/storage/app
- logs_storage:/app/storage/logs
command: [ 'supervisord' ]
scheduler:
build:
context: ./server
dockerfile: Dockerfile
env_file:
- .env.laravel
depends_on:
- db
restart: unless-stopped
volumes:
- app_storage:/app/storage/app
- logs_storage:/app/storage/logs
command: [ 'php', 'artisan', 'schedule:work', '--verbose' ]
db:
image: postgres:18
env_file:
- .env.postgres
volumes:
- postgres_data:/var/lib/postgresql
expose:
- '5432'
ports:
- '5432:5432'
restart: unless-stopped
volumes:
postgres_data:
app_storage:
driver: local
driver_opts:
type: none
o: bind
device: ./server/storage/app
logs_storage:
driver: local
driver_opts:
type: none
o: bind
device: ./server/storage/logs