-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (39 loc) · 979 Bytes
/
docker-compose.yml
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
version: '3'
services:
koa-app:
container_name: app_container
image: node:11
command: npm run dev
volumes:
- .:/app
- nodemodules:/app/node_modules
working_dir: /app
depends_on:
- postgres
ports:
- '3010:3010'
postgres:
container_name: postgres_container
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
PGDATA: /data/postgres
POSTGRES_DB: typescript-koa
volumes:
- postgres:/data/postgres
- ./migrations/dump.sql:/dump.sql
expose:
- '54322'
ports:
- '54322:5432'
networks:
- postgres
restart: unless-stopped
networks:
postgres:
driver: bridge
volumes:
postgres:
nodemodules:
external: true