-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
56 lines (49 loc) · 1.11 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
55
56
version: "3.5"
services:
frontend_server:
image: frontend
build: ./frontend
ports:
- 5000:5000
environment:
- REACT_APP_BACKEND_URL=http://localhost:8080
container_name: frontend
backend_server:
image: backend
build: ./backend
ports:
- 8080:8080
environment:
- REDIS_HOST=redis_server
- POSTGRES_HOST=postgres_server
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DATABASE=postgres
- REQUEST_ORIGIN=http://localhost
container_name: backend
depends_on:
- postgres_server
- redis_server
redis_server:
image: redis
restart: unless-stopped
container_name: redis
postgres_server:
image: postgres:13.2-alpine
restart: unless-stopped
environment:
POSTGRES_PASSWORD: postgres
container_name: postgres
volumes:
- database:/var/lib/postgresql/data
reverse_proxy:
image: nginx:1.19-alpine
restart: unless-stopped
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
environment:
- NGINX_PORT=80
volumes:
database: