-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
33 lines (31 loc) · 993 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
version: '3'
services:
webapi:
container_name: sylvre-webapi
image: shahzaibm/sylvre-webapi:latest
hostname: sylvre-webapi
ports:
- ${API_PORT_ON_HOST}:80
environment:
APPSETTINGS__SYLAPI_SECRET: ${SYLVREWEBAPI_SECRET}
APPSETTINGS__SYLAPI_CORSORIGIN: ${SYLVREWEBAPI_CORSORIGIN}
APPSETTINGS__SYLAPI_COOKIEDOMAIN: ${SYLVREWEBAPI_COOKIEDOMAIN}
APPSETTINGS__SYLAPI_DBSERVER: "sylvre-webapi-db"
APPSETTINGS__SYLAPI_DBPORT: "5432"
APPSETTINGS__SYLAPI_DBNAME: "sylvre-webapi"
APPSETTINGS__SYLAPI_DBUSER: "sylvre-webapi"
APPSETTINGS__SYLAPI_DBPASSWORD: "password"
depends_on:
- "db"
restart: always
db:
container_name: sylvre-webapi-db
image: postgres
hostname: sylvre-webapi-db
environment:
POSTGRES_USER: "sylvre-webapi"
POSTGRES_PASSWORD: "password"
POSTGRES_DB: "sylvre-webapi"
volumes:
- ${DATABASE_PATH_ON_HOST}:/var/lib/postgresql/data
restart: always