-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (51 loc) · 1.26 KB
/
Copy pathdocker-compose.yml
File metadata and controls
55 lines (51 loc) · 1.26 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
version: '3.8'
services:
database:
image: postgres:15-alpine
container_name: qse-studio-db
restart: always
environment:
POSTGRES_USER: ${DB_USER:-qseadmin}
POSTGRES_PASSWORD: ${DB_PASSWORD:-qsepassword}
POSTGRES_DB: ${DB_NAME:-qsestudio}
ports:
- "${DB_PORT_OUT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./api-server/db/migrations:/docker-entrypoint-initdb.d
api-server:
build:
context: ./api-server
dockerfile: Dockerfile
container_name: qse-studio-api
restart: always
environment:
NODE_ENV: development
PORT: 5000
DB_HOST: database
DB_PORT: 5432
DB_USER: ${DB_USER:-qseadmin}
DB_PASSWORD: ${DB_PASSWORD:-qsepassword}
DB_NAME: ${DB_NAME:-qsestudio}
SMTP_HOST: ${SMTP_HOST}
SMTP_PORT: ${SMTP_PORT}
SMTP_USER: ${SMTP_USER}
SMTP_PASS: ${SMTP_PASS}
ports:
- "5000:5000"
depends_on:
- database
web-client:
build:
context: ./web-client
dockerfile: Dockerfile
container_name: qse-studio-web
restart: always
ports:
- "3000:3000"
environment:
NEXT_PUBLIC_API_URL: http://localhost:5000
depends_on:
- api-server
volumes:
postgres_data: