-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.dev.yml
49 lines (46 loc) · 949 Bytes
/
docker-compose.dev.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
version: "3.7"
services:
frontend: # React.js frontend
build:
context: ./frontend
dockerfile: Dockerfile.dev
volumes:
- ./frontend:/app
- "/app/node_modules"
env_file:
- ./.env.dev
ports:
- 3000:3000
stdin_open: true
api: # rust graphql server
build:
context: ./api
dockerfile: Dockerfile.dev
volumes:
- ./api:/api
env_file:
- ./.env.dev
environment:
RUST_LOG: info
DATABASE_URL: postgres://postgres:postgres@db:5432/postgres
ports:
- 3535:3535
depends_on:
- db
- cache
restart: always
db: # postgresql database
image: postgres
ports:
- 5432:5432
volumes:
- ./data:/var/lib/postgresql/data
- ./migrations/up:/docker-entrypoint-initdb.d/
env_file:
- ./.env.dev
restart: always
cache:
image: redis:latest
ports:
- 6379:6379
restart: always