-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
executable file
·52 lines (52 loc) · 1.07 KB
/
compose.yaml
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
networks:
front-tier:
back-tier:
services:
db:
image: mariadb:11.4
restart: unless-stopped
user: ${USERID}:${GROUPID}
networks:
- back-tier
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
MARIADB_AUTO_UPGRADE: 1
volumes:
- ./docker/data/db:/var/lib/mysql
fpm:
build:
context: docker/fpm
args:
UID: ${USERID}
GID: ${GROUPID}
restart: unless-stopped
networks:
- back-tier
volumes:
- ./Lychee:/var/www/html/lychee
- /etc/localtime:/etc/localtime:ro
web:
build:
context: docker/nginx
args:
UID: ${USERID}
GID: ${GROUPID}
restart: unless-stopped
networks:
- back-tier
- front-tier
ports:
- "${WEB_PORT}:80"
links:
- fpm
volumes:
- ./Lychee/public:/var/www/html/lychee/public
node:
image: node:22-alpine
volumes:
- ./Lychee:/app
working_dir: /app
command: ["/bin/true"]