-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose_sample.yml
More file actions
55 lines (55 loc) · 1.53 KB
/
docker-compose_sample.yml
File metadata and controls
55 lines (55 loc) · 1.53 KB
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
services:
imageproxy:
image: willnorris/imageproxy
restart: always
ports:
- "8080:8080"
postgres:
image: postgres:16.1-alpine
restart: always
environment:
POSTGRES_USER: paxintrade
POSTGRES_PASSWORD: <password>
POSTGRES_DB: paxintrade
# ports:
# - "5432:5432"
volumes:
- ../server-data/postgres-data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
restart: always
# ports:
# - "16379:6379"
rabbitmq:
image: rabbitmq:3-management-alpine
restart: always
# ports:
# # - 5672:5672 # for sender and consumer connections
# - 15672:15672 # for serve RabbitMQ GUI
volumes:
- ../server-data/rabbitmq-data:/var/lib/rabbitmq
- ../server-data/rabbitmq-logs:/var/log/rabbitmq
rethinkdb:
image: rethinkdb:2.4.2
restart: always
# ports:
# - 28015:28015
volumes:
- ../server-data/rethinkdb-data:/app
paxintrade-api:
build:
context: .
dockerfile: Dockerfile.prod # Dockerfile.dev when development mode, Dockerfile.prod when production mode
restart: always
image: paxintrade-api:latest-prod # paxintrade-api:latest-dev when development mode, paxintrade-api:latest-prod when production mode
ports:
- "8000:8000/tcp"
volumes:
# - .:/app # need when development mode
- ./app.env:/app/app.env # need when production mode
- ../server-data/img-store:/server-data/img-store
depends_on:
- redis
- rethinkdb
- rabbitmq
- postgres