initial commit
This commit is contained in:
44
docker-compose.prod.yml
Normal file
44
docker-compose.prod.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: ${APP_NAME}-prod
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "${PROD_PORT}:8080"
|
||||
networks:
|
||||
- web
|
||||
labels:
|
||||
- homepage.group=${HOMEPAGE_GROUP}
|
||||
- homepage.name=${HOMEPAGE_NAME}
|
||||
- homepage.icon=${HOMEPAGE_ICON}
|
||||
- homepage.description=${HOMEPAGE_DESC}
|
||||
- homepage.href=${HOMEPAGE_HREF}
|
||||
|
||||
db:
|
||||
image: mysql:8.0
|
||||
container_name: ${APP_NAME}-db
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
MYSQL_DATABASE: ${DB_DATABASE}
|
||||
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
|
||||
MYSQL_PASSWORD: ${DB_PASSWORD}
|
||||
MYSQL_USER: ${DB_USERNAME}
|
||||
volumes:
|
||||
- db-data:/var/lib/mysql
|
||||
networks:
|
||||
- web
|
||||
|
||||
networks:
|
||||
web:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
db-data:
|
||||
Reference in New Issue
Block a user