-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
38 lines (38 loc) · 989 Bytes
/
docker-compose.yaml
File metadata and controls
38 lines (38 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
services:
app:
container_name: app
image: app
build:
dockerfile: MeasurementSystem.Server/Dockerfile
ports:
- '3500:8080'
depends_on:
- influxdb
- postgresdb
influxdb:
container_name: influxdb
image: influxdb:latest
ports:
- '8086:8086'
volumes:
- ./InfluxDB/db:/var/lib/influxdb2
- ./InfluxDB/configs:/etc/influxdb2
- ./InfluxDB/backup:/backup
environment:
- DOCKER_INFLUXDB_DB=influxdb
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=my-user
- DOCKER_INFLUXDB_INIT_PASSWORD=my-password
- DOCKER_INFLUXDB_INIT_ORG=org
- DOCKER_INFLUXDB_INIT_BUCKET=init-bucket
postgresdb:
container_name: postgresdb
image: postgres:latest
ports:
- '5432:5432'
volumes:
- ./PostgresDB/db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgresdb
- POSTGRES_USER=my-user
- POSTGRES_PASSWORD=my-password