-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 1004 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 1004 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: '3.9'
services:
db-postgres:
image: postgres:14
environment:
- POSTGRES_PASSWORD=pass
ports:
- "5432:5432"
hostname: db-postgres
container_name: db-postgres
stdin_open: true
tty: true
restart: always
twitter-scheduler:
image: drojo/twitter-scheduler-tfm:0.0.1-SNAPSHOT
environment:
- PORT=8080
- SPRING_PROFILES_ACTIVE=pro
- API_USERNAME=admin
- API_PASSWORD=admin1
- DB_URL=postgresql://db-postgres:5432/postgres?user=postgres&password=pass
- DB_USERNAME=postgres
- DB_PASSWORD=pass
- TWITTER_CONSUMER_KEY=<your-twitter-consumer-key>
- TWITTER_CONSUMER_SECRET=<your-twitter-consumer-secret>
- TWITTER_ACCESS_TOKEN=<your-twitter-access-token>
- TWITTER_ACCESS_TOKEN_SECRET=<your-twitter-access-token-secret>
ports:
- "8080:8080"
hostname: twitter-scheduler
container_name: twitter-scheduler
restart: on-failure
depends_on:
- db-postgres