-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
83 lines (80 loc) · 2.36 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '3'
services:
nginx:
image: playground-nginx:${PLATGROUND_APP_VERSION:-latest}
build:
context: ./
dockerfile: docker/nginx/Dockerfile
ports:
- 8080:80
application:
image: playground-application:${PLATGROUND_APP_VERSION:-latest}
build:
dockerfile: docker/php/Dockerfile
context: ./
volumes:
- ./:/var/www/application/
- /var/www/application/var/
- /var/www/application/docker/
database:
image: postgres:${POSTGRES_VERSION:-14}-alpine
environment:
POSTGRES_DB: ${POSTGRES_DB:-app}
# You should definitely change the password in production
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}
POSTGRES_USER: ${POSTGRES_USER:-symfony}
ports:
- 5432:5432
volumes:
# - db-data:/var/lib/postgresql/data:rw
# You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!
- ./docker/data/db/data:/var/lib/postgresql/data:rw
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: 'rabbitmq'
ports:
- 5672:5672
- 15672:15672
volumes:
- ./docker/data/rabbitmq-data/:/var/lib/rabbitmq/
- ./docker/data/rabbitmq-log/:/var/log/rabbitmq
# redpanda:
# # NOTE: Please use the latest version here!
# image: vectorized/redpanda:v22.1.3
# container_name: redpanda-1
# command:
# - redpanda
# - start
# - --smp
# - '1'
# - --reserve-memory
# - 0M
# - --overprovisioned
# - --node-id
# - '0'
# - --kafka-addr
# - PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092
# - --advertise-kafka-addr
# - PLAINTEXT://redpanda:29092,OUTSIDE://localhost:9092
# - --pandaproxy-addr
# - PLAINTEXT://0.0.0.0:28082,OUTSIDE://0.0.0.0:8082
# - --advertise-pandaproxy-addr
# - PLAINTEXT://redpanda:28082,OUTSIDE://localhost:8082
# ports:
# - 8081:8081
# - 8082:8082
# - 9092:9092
# - 28082:28082
# - 29092:29092
# kafdrop:
# image: obsidiandynamics/kafdrop:3.30.0
# restart: "always"
# ports:
# - "9000:9000"
# environment:
# KAFKA_BROKERCONNECT: "redpanda:29092"
# JVM_OPTS: "-Xms16M -Xmx48M -Xss180K -XX:-TieredCompilation -XX:+UseStringDeduplication -noverify"
# depends_on:
# - "redpanda"
#volumes:
# redpanda-kafka: