-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (45 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
45 lines (45 loc) · 1.16 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
version: '3'
services:
loca-backend:
build: .
restart: always
command:
- yarn
- debug
environment:
FRONTEND_BASEURL: http://localhost:4000/
JWT_SECRET: foobar
JWT_ISSUER: loca-backend-dev
TYPEORM_CONNECTION: postgres
TYPEORM_HOST: postgres
TYPEORM_USERNAME: postgres
TYPEORM_PASSWORD: ""
TYPEORM_PORT: "5432"
TYPEORM_SYNCHRONIZE: "true"
TYPEORM_LOGGING: "true"
TYPEORM_ENTITIES: "src/entities/**/*.ts"
TYPEORM_MIGRATIONS: "src/migrations/**/*.ts"
TYPEORM_SUBSCRIBERS: "src/subscribers/**/*.ts"
TYPEORM_ENTITIES_DIR: "src/entities"
TYPEORM_MIGRATIONS_DIR: "src/migrations"
TYPEORM_SUBSCRIBERS_DIR: "src/subscribers"
ports:
- 3000:3000
volumes:
- ./src:/usr/src/app/src:consistent
- ./views:/usr/src/app/views:consistent
depends_on:
- postgres
stdin_open: true
tty: true
postgres:
image: postgres:9.6-alpine
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_DB: postgres
POSTGRES_PASSWORD: ""
ports:
- 5432:5432
volumes:
- ~/pgdata:/var/lib/postgresql/data