-
-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 988 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (42 loc) · 988 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
45
version: '3.9'
services:
db:
image: postgres:latest
environment:
POSTGRES_DB: lesson_1
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5434:5432
client:
build:
context: ./website/client
container_name: lesson-001-client
depends_on:
- server
- db
environment:
REACT_APP_WEBSITE_NAME: Social
REACT_APP_BACKEND_HOST: localhost
REACT_APP_BACKEND_PORT: 8080
REACT_APP_CODESPACE_NAME: ${CODESPACE_NAME}
REACT_APP_GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN: ${GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}
ports:
- 3000:3000
server:
build:
context: ./website/server
depends_on:
- db
environment:
PORT: 8080
POSTGRES_DB: lesson_1
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_PORT: 5432
POSTGRES_HOST: db
links:
- db
ports:
- "8080:8080"
container_name: lesson-001-server