-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (69 loc) · 1.59 KB
/
docker-compose.yml
File metadata and controls
70 lines (69 loc) · 1.59 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
services:
app:
build:
context: ./backend
dockerfile: Dockerfile
restart: unless-stopped
ports:
- 9000:9000
depends_on:
- db
env_file:
- ./backend/.env
volumes:
- storage:/usr/share/nginx/html/storage:rw
- public:/usr/share/nginx/html/public:rw
queue-worker:
build:
context: ./backend
dockerfile: Dockerfile
restart: unless-stopped
command: php artisan queue:work
environment:
IS_WORKER: "true"
env_file:
- ./backend/.env
depends_on:
- db
- redis
volumes:
- storage:/usr/share/nginx/html/storage:rw
- public:/usr/share/nginx/html/public:rw
nginx:
image: nginx:1-alpine
ports:
- 80:80
- 443:443
volumes:
- ./nginx.conf:/etc/nginx/templates/default.conf.template
- storage:/usr/share/nginx/html/storage:rw
- public:/usr/share/nginx/html/public:ro
db:
image: bitnami/postgresql:16.3.0
platform: linux/amd64
ports:
- 5432:5432
restart: always
volumes:
- db-data:/bitnami/postgresql
environment:
- POSTGRESQL_DATABASE=${POSTGRESQL_DATABASE}
- POSTGRESQL_USERNAME=${POSTGRESQL_USERNAME}
- POSTGRESQL_PASSWORD=${POSTGRESQL_PASSWORD}
redis:
image: bitnami/redis:7.2
platform: linux/amd64
ports:
- 6379:6379
restart: always
volumes:
- redis-data:/bitnami/redis/data
environment:
- ALLOW_EMPTY_PASSWORD=no
- REDIS_PASSWORD=${REDIS_PASSWORD}
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
volumes:
storage:
public:
db-data:
redis-data: