-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (49 loc) · 1.15 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
version: "3.1"
services:
watch:
image: api:local
hostname: api
volumes:
- ./src:/app/src:ro
- ./migrations:/app/migrations:ro
- ./import_map.json:/app/import_map.json:ro
- ./deps_lock.json:/app/deps_lock.json:ro
ports:
- 1337:1337
command: "run --watch -A --importmap import_map.json ./src/index.ts"
env_file:
- .env
depends_on:
- postgres
- adminer # its optional, but good for development
api:
image: api:local
hostname: api
volumes:
- ./src:/app/src:ro
- ./migrations:/app/migrations:ro
- ./import_map.json:/app/import_map.json:ro
- ./deps_lock.json:/app/deps_lock.json:ro
ports:
- 1337:1337
command: "run -A --importmap import_map.json ./src/index.ts"
env_file:
- .env
depends_on:
- postgres
postgres:
image: postgres:14-alpine
hostname: postgres
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
volumes:
- db:/var/lib/postgresql/data
adminer:
hostname: adminer
image: adminer
ports:
- 8080:8080
volumes:
db: