-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (38 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
38 lines (38 loc) · 1.01 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
version: '3'
services:
drivent-production:
build:
context: .
dockerfile: Dockerfile
container_name: drivent-back
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '5'
working_dir: /usr/src/drivent
command: bash -c "npx prisma generate && npm run migration:run && npm run start"
restart: always
environment:
NODE_ENV: production
DATABASE_URL: ${DATABASE_URL}
JWT_SECRET: ${JWT_SECRET}
drivent-postgres-production:
image: postgres:13-alpine
environment:
POSTGRES_USER: ${POSTGRES_USERNAME}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DATABASE}
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}
volumes:
- /usr/local/drivent-pg/data:/var/lib/postgresql/data
command: postgres -p ${POSTGRES_PORT}
drivent-nginx:
image: nginx
ports:
- 80:80
- 443:443
volumes:
- ./nginx:/etc/nginx/conf.d
- /usr/src/drivent/front-end:/var/www/html