-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (36 loc) · 963 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
version: '3.8'
services:
postgres:
image: postgres
container_name: mypostgresdb
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: apply_products_db
ports:
- "5432:5432"
volumes:
- myotherpostgresdbdata:/var/lib/postgresql/data
restart: unless-stopped
backend:
build:
context: .
network: host
environment:
POSTGRES_HOST: postgres
POSTGRES_PORT: ${POSTGRES_PORT}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DATABASE: ${POSTGRES_DATABASE}
JWT_SECRET: ${JWT_SECRET}
JWT_EXPIRATION: ${JWT_EXPIRATION}
CONTENTFUL_SPACE_ID: ${CONTENTFUL_SPACE_ID}
CONTENTFUL_ACCESS_TOKEN: ${CONTENTFUL_ACCESS_TOKEN}
ENVIRONMENT: ${ENVIRONMENT}
CONTENT_TYPE: ${CONTENT_TYPE}
ports:
- "3000:3000"
depends_on:
- postgres
volumes:
myotherpostgresdbdata:
# mypostgresdbdata: