-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
39 lines (34 loc) · 782 Bytes
/
compose.yaml
File metadata and controls
39 lines (34 loc) · 782 Bytes
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
services:
app:
build:
context: .
volumes:
- ./app:/rss_reader/app
- ./templates:/rss_reader/templates
- ./static:/rss_reader/static
- db:/db
ports:
- 8080:80
environment:
FLASK_ENV: development
DEBUG: "true"
command: >
sh -c "uwsgi uwsgi.ini --py-autoreload 2"
static:
build:
dockerfile_inline: |
FROM node:20-bookworm
USER node
WORKDIR /home/node
COPY static/package.json .
RUN npm install --loglevel error
ENV PATH=$PATH:/home/node/node_modules/.bin
WORKDIR ./rss_reader
volumes:
- ./static:/home/node/rss_reader
environment:
SHELL: sh
command: >
sh -c "npm run build && npm run watch"
volumes:
db: