-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (34 loc) · 883 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (34 loc) · 883 Bytes
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
# This configuration is intended for development purpose, it's **your** responsibility to harden it for production
version: '3.8'
services:
db:
image: postgres:15.0
# volumes:
# - ~/volumes/jhipster/baseapi/postgresql/:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST_AUTH_METHOD=trust
# If you want to expose these ports outside your dev PC,
# remove the "127.0.0.1:" prefix
ports:
- 127.0.0.1:5432:5432
app:
image: maxiplux/fastapidevops-auth:latest
container_name: app
restart: on-failure
depends_on:
- db
environment:
- DB_USERNAME=postgres
- DB_PASSWORD =postgres
- DB_HOST=db
- DB_NAME=postgres
ports:
- 0.0.0.0:8080:80
volumes:
cache:
driver: local
networks:
dockernet:
external: true