initial
This commit is contained in:
32
compose.yaml
Normal file
32
compose.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
api_app:
|
||||
build: .
|
||||
platform: linux/x86_64
|
||||
image: pmu_api:1
|
||||
container_name: api_app
|
||||
ports:
|
||||
- 8183:8080
|
||||
restart: on-failure
|
||||
depends_on:
|
||||
- api_db
|
||||
networks:
|
||||
- api
|
||||
api_db:
|
||||
image: postgres
|
||||
container_name: api_db
|
||||
ports:
|
||||
- 5555:5432
|
||||
volumes:
|
||||
- db_api:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=password
|
||||
- POSTGRES_DBNAME="plr"
|
||||
restart: always
|
||||
networks:
|
||||
- api
|
||||
volumes:
|
||||
db_api:
|
||||
networks:
|
||||
api:
|
||||
Reference in New Issue
Block a user