-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (43 loc) · 982 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (43 loc) · 982 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
services:
app:
build:
context: .
dockerfile: Dockerfile
image: ofmi_app
command: npm run dev
env_file: ".env.dev"
volumes:
- .:/app
- shared_node_modules:/app/node_modules # TODO: I had problems with packages installing different OS for Mac
ports:
- "3000:3000"
depends_on:
- db
db:
image: docker.io/library/postgres:14.1-alpine #TODO: i use podman so i need to specify the docker hub url
container_name: ofmi_db
restart: always
environment:
- POSTGRES_USER=ofmi
- POSTGRES_PASSWORD=ofmi
- POSTGRES_DB=ofmi
ports:
- "5432:5432"
volumes:
- db:/var/lib/postgresql/data
studio:
image: ofmi_app
restart: always
command: npm run studio
env_file: ".env.dev"
volumes:
- .:/app
- shared_node_modules:/app/node_modules
ports:
- "5555:5555"
depends_on:
- app
volumes:
db:
driver: local
shared_node_modules: