-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
57 lines (51 loc) · 1.14 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
57
version: "3.9"
services:
api:
build: ./server
image: covisourceapi
container_name: covisource-api
volumes:
- ./server:/api
ports:
- 4000:4000
links:
- database
- redis
depends_on:
- redis
environment:
REDIS_URL: redis:6379
DATABASE_URL: postgresql://postgres:postgres@database:5432/covisourcetestdb
CORS_ORIGIN: http://localhost:3000
SESSION_SECRET: somerandomsecret
PORT: 4000
react:
build: ./client
image: covisourceclient
container_name: covisource-client
volumes:
- ./client:/client
ports:
- 3000:3000
environment:
mode: dev
REACT_APP_GOOGLE_MAPS_API_KEY: AIzaSyCxttBHhvoDHLXbUgnMtjO3OVDw46iFSQw
REACT_APP_SERVER_URL: http://localhost:4000/graphql
redis:
image: redis:alpine
container_name: covisource-redis
command:
redis-server
ports:
- 6379:6379
database:
container_name: covisource-database
image: postgres:alpine
env_file:
- database.env
volumes:
- database-data:/var/lib/postgresql/data/
ports:
- 5432:5432
volumes:
database-data: