-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (39 loc) · 1019 Bytes
/
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
version: '3.9'
services:
postgres:
env_file:
- .env
image: postgres:14-alpine
ports:
- 5432:5432
volumes:
- ~/apps/postgres:/var/lib/postgresql/data
- ./database_infra/:/docker-entrypoint-initdb.d
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DB}
server:
image: notzree/wikigraph_server:1.0
env_file:
- .env
container_name: wikigraph_server
stdin_open: true
tty: true
ports:
- 8080:8080
volumes:
- .:/app
build:
context: ./
dockerfile: ./server_infra/Dockerfile
environment:
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?sslmode=disable
- UPSTASH_URL=${UPSTASH_URL}
- RATE_LIMITER_PORT=${RATE_LIMITER_PORT}
- PATH_FINDER_PORT=${PATH_FINDER_PORT}
- AUTO_COMPLETER_PORT=${AUTO_COMPLETER_PORT}
depends_on:
- postgres
volumes:
postgres: