-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (36 loc) · 1.04 KB
/
docker-compose.yml
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
version: "3"
services:
database:
image: postgres:12-alpine
restart: always
ports:
- "33432:5432"
volumes:
- ./.postgres/db_data:/var/lib/postgresql/data
- ./.postgres/backups:/backups
environment:
POSTGRES_PASSWORD: p@55w0rd!
object-detection:
build:
context: ./src/object-detection
dockerfile: ./docker/dockerfile
restart: unless-stopped
volumes:
- ./src/object-detection/models:/models
- ./src/object-detection/models_hash:/models_hash
ports:
- "33430:7770"
graphql-engine:
image: hasura/graphql-engine:v1.3.3.cli-migrations-v2
volumes:
- ./hasura/migrations:/hasura-migrations
- ./hasura/metadata:/hasura-metadata
ports:
- "33433:8080"
depends_on:
- "database"
restart: unless-stopped
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:p%4055w0rd!@database:5432/postgres
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
HASURA_GRAPHQL_ADMIN_SECRET: p@55w0rd!