Modify `docker-compose.yml
` - rely on .env file
This commit is contained in:
parent
0fd2bc6463
commit
186d19e765
@ -5,12 +5,6 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: qtc-net-server/Dockerfile
|
dockerfile: qtc-net-server/Dockerfile
|
||||||
environment:
|
|
||||||
- ASPNETCORE_ENVIRONMENT="Production"
|
|
||||||
- ASPNETCORE_HTTP_PORTS=8080
|
|
||||||
- DB_CONNECTION_STRING="Server=db;Database=qtcnet;User Id=${DB_USER};Password=${DB_PASSWORD};"
|
|
||||||
- DB_PROVIDER="MySQL"
|
|
||||||
- JWT_KEY="XoCgVnNjMT3h$!75lNib7JO!NC5pGh!4"
|
|
||||||
volumes:
|
volumes:
|
||||||
- "qtc-user-content:/app/user-content"
|
- "qtc-user-content:/app/user-content"
|
||||||
ports: # comment me out if your using traefik
|
ports: # comment me out if your using traefik
|
||||||
@ -32,10 +26,6 @@ services:
|
|||||||
container_name: qtc-db
|
container_name: qtc-db
|
||||||
env_file: .env
|
env_file: .env
|
||||||
image: mariadb
|
image: mariadb
|
||||||
environment:
|
|
||||||
- MARIADB_DATABASE=qtcnet
|
|
||||||
- MARIADB_USER=${DB_USER}
|
|
||||||
- MARIADB_PASSWORD=${DB_PASSWORD}
|
|
||||||
volumes:
|
volumes:
|
||||||
- "qtc-data:/var/lib/mariadb"
|
- "qtc-data:/var/lib/mariadb"
|
||||||
networks:
|
networks:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user