initial commit - code moved to separate repo
This commit is contained in:
27
_deploy/deploy.homelab.production.yml
Normal file
27
_deploy/deploy.homelab.production.yml
Normal file
@ -0,0 +1,27 @@
|
||||
version: "3.1"
|
||||
services:
|
||||
nextjs-app:
|
||||
image: docker.d-popov.com/jwpw:latest
|
||||
ports:
|
||||
- "5001:3000"
|
||||
environment:
|
||||
- NODE_ENV=prod
|
||||
- DATABASE_URL=mysql://cart:o74x642Rc8@mariadb:3306/cart
|
||||
- UPDATE_CODE_FROM_GIT=true # Set to true to pull latest code from Git
|
||||
- GIT_USERNAME=deploy
|
||||
- GIT_PASSWORD=%L3Kr2R438u4F7^%40
|
||||
command: sh -c " cd /app && npm install && npm run nodeenv; tail -f /dev/null"
|
||||
tty: true
|
||||
stdin_open: true
|
||||
mariadb:
|
||||
hostname: mariadb
|
||||
image: mariadb #bitnami/mariadb:latest #mariadb:10.4
|
||||
environment:
|
||||
MARIADB_ROOT_PASSWORD: Pw62L$3332JH
|
||||
MYSQL_ROOT_PASSWORD: Pw62L$3332JH
|
||||
MYSQL_DATABASE: cart
|
||||
MYSQL_USER: cart
|
||||
MYSQL_PASSWORD: o74x642Rc8
|
||||
networks:
|
||||
- default
|
||||
- mysql_default
|
Reference in New Issue
Block a user