-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (41 loc) · 930 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (41 loc) · 930 Bytes
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
services:
nestjs:
build: containers/nestjs
image: nestjs
container_name: nestjs
env_file: .env
init: true # Prevents waiting on 10s timeout on shutdown
restart: on-failure
ports:
- 4242:4242
volumes:
- ./containers/nestjs/:/nestjs/code/
depends_on:
- vuejs # Prevents npm ci timeout
- db
vuejs:
build: containers/vuejs
image: vuejs
container_name: vuejs
env_file: .env
init: true # Prevents waiting on 10s timeout on shutdown
restart: on-failure
ports:
- 2424:2424
volumes:
- ./containers/vuejs/:/vuejs/code/
db:
image: postgres:alpine
container_name: db
env_file: .env
ports:
- 5432:5432 # Used to manually inspect the db from the host
volumes:
- db_volume:/var/lib/postgresql/data
adminer:
image: adminer
restart: always
ports:
- 8080:8080
volumes:
db_volume: