dev env
This commit is contained in:
56
compose.yml
Normal file
56
compose.yml
Normal file
@@ -0,0 +1,56 @@
|
||||
services:
|
||||
python:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: .build/dev/python.Dockerfile
|
||||
hostname: backend
|
||||
restart: always
|
||||
command: uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
|
||||
volumes:
|
||||
- ./:/var/www/html
|
||||
env_file:
|
||||
- .env
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
node:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: .build/dev/node.Dockerfile
|
||||
hostname: frontend
|
||||
restart: always
|
||||
volumes:
|
||||
- ./:/var/www/html
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
nginx:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: .build/dev/nginx.Dockerfile
|
||||
hostname: nginx
|
||||
restart: always
|
||||
ports:
|
||||
- "8000:80"
|
||||
volumes:
|
||||
- ./:/var/www/html
|
||||
depends_on:
|
||||
- python
|
||||
- node
|
||||
|
||||
postgres:
|
||||
image: postgis/postgis:15-3.3
|
||||
hostname: database
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: mapmaker
|
||||
POSTGRES_PASSWORD: mapmaker
|
||||
POSTGRES_DB: mapmaker
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "5432:5432"
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
driver: local
|
||||
Reference in New Issue
Block a user