forked from bcgov/wps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.api-noreload.yml
36 lines (36 loc) · 1.02 KB
/
docker-compose.api-noreload.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.7"
volumes:
# Create volumes for docker to store stuff in that doesn't clash with local!
node_modules:
services:
api:
build:
context: api
dockerfile: Dockerfile
env_file:
- ./api/app/.env.docker
ports:
- "8080:8080"
volumes:
- ./api:/app:delegated # Volume optimizations https://engageinteractive.co.uk/blog/making-docker-faster-on-mac
- node_modules:/app/node_modules/ # point to docker volume for node_modules
- ./web/build:/app/static:delegated # point to local build files
command: bash -c "PYTHONPATH=. alembic upgrade head && uvicorn app.main:app --host 0.0.0.0 --port 8080"
networks:
- wps_network
# Application's local database container & service
db:
image: postgis/postgis
hostname: db
ports:
- 5432:5432
environment:
- POSTGRES_USER=wps
- POSTGRES_PASSWORD=wps
- POSTGRES_DB=wps
- POSTGRES_HOST_AUTH_METHOD="trust"
networks:
- wps_network
networks:
wps_network:
driver: bridge