You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/projects/docker-compose.yml

84 lines
2.3 KiB

version: "3.4"
services:
portainer:
image: portainer/portainer:1.23.2
ports:
- 9000:9000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./portainer/data:/data
mysql:
image: mysql:8.0
restart: always
hostname: mysql
environment:
MYSQL_ROOT_PASSWORD: root
command: --default-authentication-plugin=mysql_native_password
volumes:
- ./mysql:/var/lib/mysql
influxdb:
image: influxdb:1.8
restart: always
hostname: influxdb
environment:
TZ: "Asia/Shanghai"
INFLUXDB_ADMIN_ENABLED: "true"
INFLUXDB_ADMIN_USER: admin
INFLUXDB_ADMIN_PASSWORD: admin
volumes:
- ./influxdb:/var/lib/influxdb
srs:
image: ossrs/srs:v4.0.23
environment:
TZ: "Asia/Shanghai"
restart: always
ports:
- 1935:1935
- 1985:1985
volumes:
- ./srs/conf/srs.conf:/usr/local/srs/conf/srs.conf
- ./log/srs:/usr/local/srs/objs/log
- ./srs/objs/nginx/html/video:/usr/local/srs/objs/nginx/html/video
usercenter:
image: ${DOCKER_REGISTRY-}usercenter
build:
context: .
dockerfile: UserCenter/Dockerfile
iotcenter:
image: ${DOCKER_REGISTRY-}iotcenter
build:
context: .
dockerfile: IoTCenter/Dockerfile
jobserver:
image: ${DOCKER_REGISTRY-}jobserver
build:
context: .
dockerfile: JobServer/Dockerfile
webmvc:
image: ${DOCKER_REGISTRY-}webmvc
build:
context: .
dockerfile: WebMVC/Dockerfile
webspa:
image: ${DOCKER_REGISTRY-}webspa
build:
context: .
dockerfile: WebSPA/Dockerfile
nginx:
image: nginx:1.18
restart: always
environment:
TZ: "Asia/Shanghai"
ports:
- 80:80
- 443:443
depends_on:
- webmvc
- usercenter
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/edusoa.key:/etc/nginx/edusoa.key
- ./nginx/edusoa.pem:/etc/nginx/edusoa.pem
- ./log/nginx:/var/log/nginx