-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
60 lines (54 loc) · 1.04 KB
/
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
56
57
58
59
60
version: '3.7'
volumes:
db_data:
pgdata:
services:
api:
build: .
command: npm run api:watch
restart: always
ports:
- 3000:3000
volumes:
- ./:/app
depends_on:
- postgres
client:
build: .
command: npm run client:dev
volumes:
- ./:/app
depends_on:
- api
bot:
build: .
entrypoint: ./entrypoint.sh
command: npm run bot:watch
restart: always
volumes:
- ./:/app
depends_on:
- postgres
postgres:
image: postgres:13-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=mysecretpassword
- POSTGRES_DB=hakeshonassydb
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
localtunnel:
image: efrecon/localtunnel
restart: on-failure
volumes:
- ./subdomain.js:/app/subdomain.js
entrypoint: sh -c '/usr/bin/lt --local-host api --port 3000 --subdomain `/app/subdomain.js`'
env_file:
- .env
links:
- api
depends_on:
- api