-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 880 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 880 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
version: "3.9"
services:
api:
restart: always
build:
context: ./api
container_name: api
ports:
- "8000:8000"
volumes:
- ./api:/code
environment:
- ALLOWED_HOSTS=0.0.0.0,localhost,127.0.0.1
- DEBUG=true
- SECRET_KEY=secret
- DATABASE_URL=postgres://postgres:password@postgres:5432/postgres
- CORS_ALLOWED_ORIGINS=http://localhost:3000
depends_on:
- postgres
command: make migrate server
react:
build:
context: ./react
container_name: react
ports:
- "3000:3000"
volumes:
- ./react:/app
environment:
- REACT_APP_BASE_URL=http://localhost:8000
command: npm start
postgres:
restart: always
image: postgres:13
environment:
- POSTGRES_PASSWORD=password
volumes:
- pgdata:/var/lib/postgresql/data/
volumes:
pgdata: