-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (43 loc) · 952 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (43 loc) · 952 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
39
40
41
42
43
44
45
46
47
48
version: '3.8'
services:
api:
build: .
ports:
- "8080:8080"
env_file: .env
depends_on:
- postgres
- influxdb
postgres:
image: postgres:15
environment:
POSTGRES_USER: app
POSTGRES_PASSWORD: app
POSTGRES_DB: app
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
influxdb:
image: influxdb:2.7
environment:
DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_USERNAME: app
DOCKER_INFLUXDB_INIT_PASSWORD: app-password
DOCKER_INFLUXDB_INIT_ORG: app-org
DOCKER_INFLUXDB_INIT_BUCKET: telemetry
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: dev-token
volumes:
- influxdata:/var/lib/influxdb2
ports:
- "8086:8086"
migrate:
build: .
command: npx prisma migrate dev --name init
depends_on:
- postgres
env_file: .env
profiles: ["dev"]
volumes:
pgdata: {}
influxdata: {}