-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (35 loc) · 859 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (35 loc) · 859 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
version: '3.4'
services:
postgres:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: postgres
app:
restart: always
build:
context: .
environment:
REACT_APP_API_URL: ${API_URL}
POSTGRES_HOST: 'postgres://postgres:postgres@postgres:5432/postgres'
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
REDIS_URL: 'redis://cache:6379'
API_URL: 'http://app:8000'
SESSION_SECRET: ${SESSION_SECRET}
ENABLE_DATABASE_SSL: ${ENABLE_DATABASE_SSL:-0}
scraper:
image: scraper
build:
context: .
environment:
REDIS_URL: 'redis://cache:6379'
POSTGRES_HOST: 'postgres'
API_URL: 'http://app:8000'
depends_on:
- redis
redis:
image: redis
container_name: cache
volumes:
postgres: ~