-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
43 lines (42 loc) · 955 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
40
41
42
43
version: '3.9'
services:
products-api:
build: .
ports:
- "8088:8088"
environment:
PORT: 8088
ENVIRONMENT: PRODUCTION
DB_HOST: postgres
DB_USER: postgres
DB_PASSWORD: postgres
DB_PORT: 5432
DB_NAME: postgres
# ENVIRONMENT: DEVELOPMENT
deploy:
replicas: 1
restart_policy:
condition: on-failure
container_name: products-sku-api
depends_on:
- postgres
networks:
- some-net
postgres:
image: postgres:14.0
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "65432:5432"
networks:
- some-net
container_name: products-sku-api-db
# volumes:
# - ./sql/init.sql:/docker-entrypoint-initdb.d/init.sql
# - ./data:/var/lib/postgresql/data
# - ./sql/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
some-net:
driver: bridge