Skip to content

Commit 14ab156

Browse files
committed
Add a development docker-compose file for use with User Namespaces
1 parent a3cf051 commit 14ab156

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

docker/docker-compose.dev-user.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# WARNING: This is a DEVELOPMENT docker-compose file, it should not be used for production.
2+
# Important: this version is designed to work with user-namespaces, which allows running
3+
# under podman.
4+
version: '3.8'
5+
services:
6+
7+
npm:
8+
image: nginxproxymanager:dev
9+
container_name: npm_core
10+
build:
11+
context: ./
12+
dockerfile: ./dev/Dockerfile
13+
ports:
14+
- 3080:80
15+
- 3081:81
16+
- 3443:443
17+
networks:
18+
- nginx_proxy_manager
19+
environment:
20+
# PUID: 1000
21+
# PGID: 1000
22+
FORCE_COLOR: 1
23+
# specifically for dev:
24+
DEBUG: 'true'
25+
DEVELOPMENT: 'true'
26+
LE_STAGING: 'true'
27+
# db:
28+
DB_MYSQL_HOST: 'db'
29+
DB_MYSQL_PORT: '3306'
30+
DB_MYSQL_USER: 'npm'
31+
DB_MYSQL_PASSWORD: 'npm'
32+
DB_MYSQL_NAME: 'npm'
33+
# DB_SQLITE_FILE: "/data/database.sqlite"
34+
# DISABLE_IPV6: "true"
35+
volumes:
36+
- npm_data:/data
37+
- le_data:/etc/letsencrypt
38+
- ../backend:/app
39+
- ../frontend:/app/frontend
40+
- ../global:/app/global
41+
depends_on:
42+
- db
43+
working_dir: /app
44+
45+
db:
46+
image: jc21/mariadb-aria
47+
container_name: npm_db
48+
ports:
49+
- 33306:3306
50+
networks:
51+
- nginx_proxy_manager
52+
environment:
53+
MYSQL_ROOT_PASSWORD: 'npm'
54+
MYSQL_DATABASE: 'npm'
55+
MYSQL_USER: 'npm'
56+
MYSQL_PASSWORD: 'npm'
57+
volumes:
58+
- db_data:/var/lib/mysql
59+
60+
volumes:
61+
npm_data:
62+
name: npm_core_data
63+
le_data:
64+
name: npm_le_data
65+
db_data:
66+
name: npm_db_data
67+
68+
networks:
69+
nginx_proxy_manager:
70+
name: npm_network

0 commit comments

Comments
 (0)