-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (63 loc) · 1.56 KB
/
docker-compose.yml
File metadata and controls
68 lines (63 loc) · 1.56 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '3.3'
services:
db:
image: postgres:12.0-alpine
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- postgres-data:/var/lib/postgresql/data
redis:
image: redis:5
volumes:
- redis-data:/data
server:
image: kitab-bazar/server
build:
context: ./server/
tty: true
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
DEBUG: "true"
# ALLOWED_HOSTS: localhost
SECRET_KEY: unsecure-123456789-dont-use-in-production
# From db.environment
DB_NAME: postgres
DB_USER: postgres
DB_PWD: postgres
DB_HOST: db
DB_PORT: 5432
env_file:
- .env
command: bash -c "/code/scripts/run_develop.sh"
volumes:
- ./server/:/code
- media:/media
ports:
- '8020:8020'
depends_on:
- db
- redis
react:
build: .
command: sh -c 'yarn install --frozen-lockfile && yarn start'
tty: true
environment:
NODE_OPTIONS: --openssl-legacy-provider
MY_APP: ${MY_APP:-kitab-bazar}
REACT_APP_ENVIRONMENT: ${REACT_APP_ENVIRONMENT:-development}
GRAPHQL_CODEGEN_ENDPOINT: ${GRAPHQL_CODEGEN_ENDPOINT:-http://server:8020/graphql/}
REACT_APP_GRAPHQL_ENDPOINT: ${REACT_APP_GRAPHQL_ENDPOINT:-http://localhost:8020/graphql/}
REACT_APP_WEB_ENDPOINT: ${REACT_APP_WEB_ENDPOINT:-http://localhost:8020}
env_file:
- .env
volumes:
- .:/code
ports:
- '3080:3080'
volumes:
media:
postgres-data:
redis-data: