-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 854 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (35 loc) · 854 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
version: "2.2"
services:
redis:
image: redis
mem_limit: 100M
restart: always
postgres:
image: postgres:latest
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
restart: always
volumes:
- pgdata:/var/lib/postgresql/data:rw
ports: # this can be removed after initial migrations
- "5432:5432"
app:
build: ./ # or image: jimmyl02/guessrapp:latest
cpus: 0.75
mem_limit: 400M
environment:
- DATABASE_URL=${DATABASE_URL}
- REDIS_URL=${REDIS_URL}
- SPOTIFY_CLIENT_ID=${SPOTIFY_CLIENT_ID}
- SPOTIFY_CLIENT_SECRET=${SPOTIFY_CLIENT_SECRET}
- ORIGIN=${ORIGIN}
depends_on:
- redis
- postgres
restart: always
ports:
- "80:8080"
volumes:
pgdata: