-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
59 lines (54 loc) · 1.14 KB
/
docker-compose.test.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
59
version: '3.2'
services:
rest:
environment:
- ENV="Test"
- QUEUE_URL=amqp://rabbit:5672
- CACHE_URL=redis://redis:6379
restart: 'always'
ports:
- '8080:8080'
container_name: rest
build:
context: .
dockerfile: ./Dockerfile.web
depends_on:
- backend
- redis
links:
- backend
- redis
backend:
environment:
- ENV="Test"
- DATABASE_URL=postgresql://spawnuser:spawn-pg-test-password@postgres/spawn?sslmode=disable
- QUEUE_URL=amqp://rabbit:5672
- CACHE_URL=redis://redis:6379
restart: 'always'
ports:
- '7887:7887'
container_name: backend
build:
context: .
dockerfile: ./Dockerfile.worker
depends_on:
- postgres
- redis
- rabbit
links:
- postgres
- redis
# postgres:
# restart: 'always'
# ports:
# - '5432:5432'
# environment:
# - POSTGRES_USER=spawnuser
# - POSTGRES_DB=spawn
# - POSTGRES_PASSWORD=spawn-pg-test-password
# build: './scripts/db'
# redis:
# image: "redis:alpine"
# restart: 'always'
# ports:
# - '6379:6379'