forked from evrone/go-clean-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (44 loc) · 927 Bytes
/
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
version: '3.9'
services:
postgres:
hostname: postgres
container_name: postgres
image: postgres:alpine
volumes:
- pg-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: 'user'
POSTGRES_PASSWORD: 'pass'
POSTGRES_DB: 'postgres'
ports:
- 5432:5432
rabbitmq:
hostname: rabbitmq
container_name: rabbitmq
image: rabbitmq:alpine
ports:
- 5672:5672
- 15672:15672
app:
build: .
container_name: app
image: app
hostname: app
environment:
PG_URL: 'postgres://user:pass@postgres:5432/postgres'
RMQ_URL: 'amqp://guest:guest@rabbitmq:5672/'
ports:
- 8080:8080
depends_on:
- postgres
- rabbitmq
integration:
build:
context: .
dockerfile: integration-test/Dockerfile
container_name: integration
image: integration
depends_on:
- app
volumes:
pg-data: