-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
39 lines (36 loc) · 1.01 KB
/
docker-compose.yaml
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
services:
flx-db:
container_name: postgres_container
hostname: 'flx-db-pg'
image: postgres:15
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres1:/var/lib/postgresql/data
# the sql script to create table
- ./packages/db/sql/init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- ${POSTGRES_PORT}:5432
restart: unless-stopped
flx-web-app:
build: packages/web-app
hostname: 'flx-web-app'
depends_on:
- 'flx-db'
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DATABASE: ${POSTGRES_DATABASE}
POSTGRES_HOST: 'flx-db'
POSTGRES_PORT: '5432'
FILE_ROOT_DIR: ${FILE_ROOT_DIR}
SCREENSHOT_ROOT_DIR: ${SCREENSHOT_ROOT_DIR}
volumes:
- ${FILE_ROOT_DIR}:${FILE_ROOT_DIR}
- ${SCREENSHOT_ROOT_DIR}:${SCREENSHOT_ROOT_DIR}
ports:
- '8282:8282'
restart: unless-stopped
volumes:
postgres1: