-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (49 loc) · 960 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
44
45
46
47
48
49
50
51
52
53
54
55
# Docker-Compose configuration file.
# v3 syntax
#version: '3.7'
version: '3.3'
# Volumes (for persist data when container restart)
volumes:
# Postgres Data
starttmws-postgres-data:
#driver: local
# Networks
networks:
starttm:
#name: starttm
#driver: bridge
# Services
services:
# Postgres
database:
image: postgres:9.6
container_name: starttm-ws-postgres
volumes:
- starttmws-postgres-data:/var/lib/pgsql
networks:
- starttm
environment:
POSTGRES_DB: starttm
POSTGRES_USER: starttm
#- POSTGRES_PASSWORD="
ports:
- "5434:5432"
logging:
driver: none
api:
#image: node:10.13
container_name: starttm-ws
build:
context: .
dockerfile: Dockerfile
environment:
- NODE_ENV=dev
volumes:
- .:/home/app
- /home/app/node_modules
ports:
- "3333:3333"
networks:
- starttm
depends_on:
- database