-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (54 loc) · 1.38 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.8'
services:
postgres:
container_name: postgres-13
image: postgres:13
restart: always
environment:
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_DB: $POSTGRES_DB
ports:
- "5432:5432"
networks:
- users-network
crowdparlay-users:
container_name: crowdparlay-users
restart: always
depends_on:
rabbitmq:
condition: service_healthy
postgres:
condition: service_started
build:
context: .
environment:
CORS_ORIGINS: http://localhost
RABBITMQ_AMQP_SERVER_URL: "amqp://$RABBITMQ_USER:$RABBITMQ_PASSWORD@rabbitmq:5672"
POSTGRES_CONNECTION_STRING: "Host=postgres;Port=5432;Database=$POSTGRES_DB;Password=$POSTGRES_PASSWORD;User Id=$POSTGRES_USER"
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: "http://+:8080"
ports:
- "8080:8080"
networks:
- users-network
rabbitmq:
container_name: rabbitmq-3.9
image: rabbitmq:3.9-management
restart: always
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 3s
timeout: 10s
retries: 3
environment:
RABBITMQ_DEFAULT_USER: $RABBITMQ_USER
RABBITMQ_DEFAULT_PASS: $RABBITMQ_PASSWORD
ports:
- "5672:5672"
- "15672:15672"
networks:
- users-network
networks:
users-network:
external: true