-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (36 loc) · 1.15 KB
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (36 loc) · 1.15 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
version: '3.5'
services:
mariadb:
image: mariadb:lts
environment:
MARIADB_ROOT_PASSWORD: 69
MARIADB_DATABASE: panda
## for external access
#ports:
# - "3306:3306"
volumes:
- ./mariadb:/var/lib/mysql
## on first ever run use this to restore db from a dump
# - ./panda_2024_01_01.sql.gz:/docker-entrypoint-initdb.d/1.sql.gz
app:
image: node:22-alpine
working_dir: /app
## --[ Alternative commands (have only one uncommented) ]--
command: /bin/sh -c 'yarn && yarn start'
## --[ webpack-dev-server ]--
#command: /bin/sh -c 'yarn && (yarn app-dev & yarn dev)'
## to run webpack in docker edit webpack.config.js, add
## under devServer `host: '0.0.0.0', disableHostCheck: true,`,
## for thumbs proxy /pandathumbs same as /api, then expose 8080
## --[ paranoid net setup preventing outgoing connections ]--
#command: /app/docker-paranoid-net.sh "npm start"
#cap_add:
# - NET_ADMIN # required to config firewall within the container
## --[ /commands ]--
ports:
- "6969:8880"
#- "8080:8080"
volumes:
- ./:/app
depends_on:
- mariadb