-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (54 loc) · 1.1 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
58
version: '3'
services:
app:
container_name: mock-premier-league
restart: always
build: .
ports:
- '80:3000'
links:
- postgres
- redis
environment:
DB_PROD_HOST: postgres
DB_TEST_HOST: postgres-test
REDIS_HOST: redis
networks:
- webnet
# command: ["./wait-for-it.sh", "postgres:5432", "--", "node", "app.js"]
postgres:
container_name: postgres
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: C00ljoe.
POSTGRES_USER: iyke
POSTGRES_DB: premierLeagueMockDB
ports:
- '5432'
networks:
- webnet
postgres-test:
container_name: postgres-test
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: C00ljoe.
POSTGRES_USER: iyke
POSTGRES_DB: premierLeagueMockDB-test
ports:
- '5432'
networks:
- webnet
redis:
container_name: redis
image: redis
restart: always
ports:
- '6379:6379'
environment:
REDIS_SECRET: C00oljvyivevghk
networks:
- webnet
networks:
webnet: