17 lines
430 B
YAML
17 lines
430 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
writeoff-backend:
|
|
image: writeoff-backend:latest
|
|
container_name: writeoff-backend
|
|
ports:
|
|
- "8080:8080"
|
|
restart: always
|
|
environment:
|
|
- SPRING_PROFILES_ACTIVE=prod
|
|
# 在这里配置数据库等环境变量
|
|
# - SPRING_DATASOURCE_URL=jdbc:mysql://db:3306/writeoff...
|
|
# 如果有同级的数据库容器,可以在这里关联
|
|
# depends_on:
|
|
# - db
|