-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·70 lines (62 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
executable file
·70 lines (62 loc) · 1.38 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: "3.8"
x-common: &common
image: rory:local
volumes:
- build:/rory/dist/
services:
builder:
image: rory:local
volumes:
- .:/rory:delegated
- build:/rory/dist/
build:
context: .
dockerfile: ./docker/Dockerfile.dev
cache_from:
- 'rory:local'
- 'rory:${BRANCH_NAME:-ignore}'
container_name: rory-builder
working_dir: /rory
command: [sh, -c, 'rm -rf ./dist/* && ./node_modules/.bin/concurrently "./node_modules/.bin/swc src -d dist -w" "./node_modules/.bin/tsc -w --pretty --skipLibCheck --noEmit"']
rory:
<<: *common
working_dir: /rory/dist
command: [sh, -c, 'node-dev --inspect=0.0.0.0 -r source-map-support/register ./index.js']
hostname: rory
container_name: rory
env_file:
- .env
# depends_on:
# - redis
# - mongo
networks:
- app
js:
image: rory:local
volumes:
- .:/rory:delegated
env_file:
- .env
networks:
- app
# redis:
# container_name: redis
# image: 'redis'
# ports:
# - 6379:6379
# networks:
# - app
# mongo:
# image: mongo:4.4.1-bionic
# environment:
# MONGO_INITDB_ROOT_USERNAME: mongo
# MONGO_INITDB_ROOT_PASSWORD: password
# MONGO_INITDB_DATABASE: rory
# ports:
# - 27017:27017
# networks:
# - app
networks:
app:
volumes:
build: