-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (40 loc) · 1.02 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
37
38
39
40
41
42
43
44
version: '3.1' # specify docker-compose version
volumes:
# Set up with `docker volume create ...`. See docker/README.md for more info.
pg_comp_ai_volume:
services:
# Starts up a postgres database
postgres:
image: postgres
restart: always
volumes:
- pg_comp_ai_volume:/var/lib/postgresql/data
ports:
- "${POSTGRES_PORT}:5432"
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD}
ports:
- "${PGADMIN_PORT}:80"
depends_on:
- postgres
# Runs from the latest release
comp-ai-api:
build:
context: .
dockerfile: Dockerfile
image: pascalhuerten/comp-ai-api:latest
pull_policy: always
restart: always
env_file:
- .env
volumes:
- ./data/models:/code/data/models
ports:
- "${HOST_PORT}:7680"
depends_on:
- postgres