-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcompose.lri.yml
More file actions
92 lines (87 loc) · 2.02 KB
/
Copy pathcompose.lri.yml
File metadata and controls
92 lines (87 loc) · 2.02 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
services:
web:
container_name: mylibsqladmin-web
build:
context: ./webapp
dockerfile: Dockerfile.local
args:
APP_ENV: development
ENV_FILE: .env.local # Use the development env file
ports:
- '8000:8000' # Laravel
- '9003:9003' # Xdebug
- '5173:5173' # Vite
volumes:
- ./webapp:/var/www/html
- ./webapp/storage:/var/www/html/storage
network_mode: host
profiles: ['development']
web_prod:
container_name: mylibsqladmin-web
build:
context: ./webapp
dockerfile: Dockerfile.production
args:
APP_ENV: production
ENV_FILE: .env.production # Use the production env file
ports:
- '8000:8000'
network_mode: host
restart: always
profiles: ['production']
proxy:
container_name: mylibsqladmin-proxy
build:
context: ./nginx
dockerfile: Dockerfile
ports:
- '8080:8080'
- '5001:5001'
- '8081:8081'
networks:
- app-network
restart: always
depends_on:
db:
condition: service_started
profiles: ['local-instance']
db:
container_name: mylibsqladmin-db
image: ghcr.io/tursodatabase/libsql-server:latest
platform: linux/amd64
entrypoint: ['/bin/sqld']
command:
- '--http-listen-addr'
- '0.0.0.0:8080'
- '--grpc-listen-addr'
- '0.0.0.0:5001'
- '--admin-listen-addr'
- '0.0.0.0:8081'
- '--enable-namespaces'
- '--no-welcome'
user: '1000:1000'
volumes:
- ./libsql-data:/var/lib/sqld
restart: always
networks:
- app-network
profiles: ['local-instance']
mailpit:
image: axllent/mailpit
container_name: mailpit
restart: unless-stopped
volumes:
- ./data:/data
ports:
- 8025:8025
- 1025:1025
environment:
MP_MAX_MESSAGES: 5000
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
networks:
- app-network
profiles: ['development']
networks:
app-network:
driver: bridge