-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
120 lines (110 loc) · 3.04 KB
/
docker-compose.yml
File metadata and controls
120 lines (110 loc) · 3.04 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
services:
webapp:
build:
context: .
dockerfile: docker/webapp/Dockerfile
target: dev
volumes:
- .:/app
- ./docker/webapp/Caddyfile:/etc/caddy/Caddyfile
- ./docker/webapp/php.ini:/usr/local/etc/php/php.ini
networks:
traefik: ~
app-net: ~
aspire-net:
aliases:
- 'api.aspirecloud.localhost'
labels:
- "traefik.enable=true"
- "traefik.http.routers.ap-api.rule=Host(`api.aspirecloud.localhost`)"
- "traefik.http.routers.ap-api-https.rule=Host(`api.aspirecloud.localhost`)"
- "traefik.http.routers.ap-api-https.tls=true"
redis:
image: redis:latest
networks:
- app-net
postgres:
image: postgres:latest
environment:
- POSTGRES_PASSWORD=password
- PGDATA=/opt/pgdata
- POSTGRES_DB=aspirecloud
volumes:
- postgresdata:/opt/pgdata
networks:
app-net: ~
aspire-net:
aliases:
- 'db.aspirecloud.localhost'
queue-worker:
build:
context: .
dockerfile: docker/laravel-worker/Dockerfile
target: dev
entrypoint: [ 'bin/queue-worker' ]
restart: unless-stopped
volumes:
- .:/app
networks:
- app-net
- aspire-net
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.15.0
environment:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms512m -Xmx512m
- xpack.security.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata:/usr/share/elasticsearch/data
networks:
- app-net
- aspire-net
cli:
build:
context: .
dockerfile: docker/cli/Dockerfile
target: dev
volumes:
- .:/app
networks:
- app-net
- aspire-net
mailpit:
image: axllent/mailpit:v1.21.4
restart: unless-stopped
networks:
app-net: ~
aspire-net:
aliases:
- 'mail.aspirecloud.localhost'
environment:
MP_MAX_MESSAGES: 500
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
prometheus:
image: prom/prometheus:latest
volumes:
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
networks:
- app-net
- aspire-net
grafana:
image: grafana/grafana:latest
networks:
- app-net
- aspire-net
volumes:
- ./docker/grafana:/etc/grafana/provisioning
networks:
app-net: ~
aspire-net:
external: true
traefik:
external: true
volumes:
esdata: ~
postgresdata: ~