-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·93 lines (85 loc) · 1.66 KB
/
docker-compose.yml
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
version: '3.8'
services:
app:
build:
context: ./
dockerfile: Dockerfile
args:
user: jonathan
uid: 1000
image: copec/laravel-app
container_name: laravel-app
working_dir: /var/www/
volumes:
- ./:/var/www/
depends_on:
- redis
- queue
restart: unless-stopped
networks:
- docker-laravel
nginx:
image: nginx:alpine
container_name: nginx
restart: always
ports:
- "80:80"
volumes:
- ./:/var/www/
- ./docker/nginx/:/etc/nginx/conf.d/
networks:
- docker-laravel
minio:
image: minio/minio
container_name: minio
command: server /data --console-address ":9701"
restart: always
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
volumes:
- ./minio_data:/data
ports:
- 9700:9700
- 9701:9701
networks:
- docker-laravel
pgsql:
image: postgres:12.17
container_name: pgsql
restart: always
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
networks:
- docker-laravel
redis:
image: redis:latest
container_name: redis
networks:
- docker-laravel
queue:
build:
context: ./
dockerfile: Dockerfile
args:
user: jonathan
uid: 1000
restart: always
command: "php artisan queue:work"
volumes:
- ./:/var/www/
depends_on:
- redis
networks:
- docker-laravel
networks:
docker-laravel:
driver: bridge
volumes:
pgdata: