forked from origranot/reduced.to
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
54 lines (50 loc) · 1.05 KB
/
docker-compose.dev.yml
File metadata and controls
54 lines (50 loc) · 1.05 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
version: '3'
services:
postgres:
image: postgres
container_name: postgres
restart: always
environment:
- POSTGRES_PORT=5432
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=reduced_to_db
ports:
- '5432:5432'
redis:
image: redis
container_name: redis
command:
- /bin/sh
- -c
- redis-server --requirepass "$${REDIS_PASSWORD:?REDIS_PASSWORD variable is not set}"
env_file: ./backend/.env
ports:
- '6379:6379'
frontend:
container_name: frontend
build:
context: ./frontend
dockerfile: Dockerfile
restart: always
ports:
- '5000:5000'
env_file: ./frontend/.env
volumes:
- '/app'
backend:
container_name: backend
platform: linux/amd64
build:
context: ./backend
dockerfile: Dockerfile
restart: always
volumes:
- ./backend:/svr/app/
- /svr/app/node_modules
ports:
- '3000:3000'
env_file: ./backend/.env
depends_on:
- postgres
- redis