generated from bhubr/node-express-ts-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
58 lines (53 loc) · 1.21 KB
/
docker-compose.dev.yml
File metadata and controls
58 lines (53 loc) · 1.21 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
56
57
58
version: '3.1'
services:
db:
image: postgres:latest
restart: always
ports:
- 5432:5432
environment:
POSTGRES_USER: ytaskAdmin
POSTGRES_PASSWORD: ytask1337
volumes:
- postgres:/data/postgres
adminer:
image: adminer
restart: always
ports:
- 8081:8080
environment:
ADMINER_DESIGN: mvt
ytask-api:
build:
context: ./
# image: ytaskwns/ytask-api:latest
environment:
NODE_ENV: production
DATABASE_URL: ${DATABASE_URL}
PORT: ${PORT}
CLIENT_WHITELIST: ${CLIENT_WHITELIST}
ADMIN_NAME: ${ADMIN_NAME}
ADMIN_EMAIL: ${ADMIN_EMAIL}
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
SUPER_ADMIN_NAME: ${SUPER_ADMIN_NAME}
SUPER_ADMIN_EMAIL: ${SUPER_ADMIN_EMAIL}
SUPER_ADMIN_PASSWORD: ${SUPER_ADMIN_PASSWORD}
JWT_SECRET: ${JWT_SECRET}
MINIO_ENDPOINT: ${MINIO_ENDPOINT}
ports:
- '3000:3000'
volumes:
- ./src/:/app/src/
command: npm run deploy
nginx:
image: nginx:1.21.3
depends_on:
- ytask-api
restart: always
ports:
- ${GATEWAY_PORT:-4000}:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./logs:/var/log/nginx
volumes:
postgres: