-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathdocker-compose.yml
157 lines (147 loc) · 3.49 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
services:
roadrunner:
#image: gaintvlad/lara_shop_roadrunner:1.001
build:
context: ./
dockerfile: ./.docker/roadrunner/Dockerfile
args:
RR_VERSION: ${RR_VERSION}
PHP_IMAGE_VERSION: ${PHP_IMAGE_VERSION}
ports:
- "80:80"
- "443:443"
- "6001:6001"
env_file: .env
environment:
# RR_VERSION: ${RR_VERSION}
APP_BASE_PATH: /app
PHP_IDE_CONFIG: "serverName=roadrunner.local"
working_dir: /app
depends_on:
- temporal
- postgresql
- mariadb
restart: on-failure
# healthcheck:
# interval: 1s
# timeout: 3s
# retries: 3
# start_period: 10s
volumes:
#- app_content:/app
- ./:/app
extra_hosts:
- "host.docker.internal:host-gateway"
mariadb:
image: bitnami/mariadb:latest
restart: unless-stopped
environment:
- MARIADB_USER=admin
- MARIADB_PASSWORD=secret
- MARIADB_ROOT_PASSWORD=rootsecret123
- MARIADB_DATABASE=shop
- MARIADB_SKIP_TEST_DB=yes
ports:
- '${DOCKER_MYSQL_PORT:-3307}:3306'
volumes:
- './.local_data/sql:/bitnami/mariadb'
mariadb_test:
image: bitnami/mariadb:latest
restart: unless-stopped
environment:
- MARIADB_USER=admin
- MARIADB_PASSWORD=secret
- MARIADB_ROOT_PASSWORD=rootsecret123
- MARIADB_DATABASE=shop
- MARIADB_SKIP_TEST_DB=yes
ports:
- '${DOCKER_MYSQL_TEST_PORT:-3308}:3306'
volumes:
- './.local_data/test_sql:/bitnami/mariadb'
redis:
image: redis:6.2.5-alpine
restart: unless-stopped
ports:
- '${DOCKER_REDIS_PORT:-6380}:6379'
command:
- '--appendonly yes'
- '--databases'
- '512'
volumes:
- './.local_data/redis:/data'
mailhog:
image: mailhog/mailhog
restart: on-failure
environment:
MH_UI_WEB_PATH: mailhog
ports:
- '8025:8025'
postgresql:
container_name: temporal-postgresql
image: postgres:12-alpine
environment:
POSTGRES_PASSWORD: temporal
POSTGRES_USER: temporal
ports:
- "5432:5432"
volumes:
- './.local_data/temporal_sql:/var/lib/postgresql/data'
temporal:
image: temporalio/auto-setup:latest
depends_on:
- postgresql
restart: on-failure
healthcheck:
test:
[
"CMD",
"tctl",
"--address",
"temporal:7233",
"workflow",
"list"
]
interval: 1s
timeout: 5s
retries: 30
environment:
- DB=postgres12
- DB_PORT=5432
- POSTGRES_USER=temporal
- POSTGRES_PWD=temporal
- POSTGRES_SEEDS=postgresql
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development.yaml
ports:
- "7233:7233"
volumes:
- ./.docker/temporal/dynamicconfig:/etc/temporal/config/dynamicconfig
temporal-admin-tools:
image: temporalio/admin-tools:latest
depends_on:
- temporal
environment:
- TEMPORAL_CLI_ADDRESS=temporal:7233
stdin_open: true
tty: true
temporal-web:
image: temporalio/web:latest
depends_on:
- temporal
environment:
- TEMPORAL_GRPC_ENDPOINT=temporal:7233
- TEMPORAL_PERMIT_WRITE_API=true
ports:
- "8088:8088"
temporal-ui:
depends_on:
- temporal
environment:
- TEMPORAL_ADDRESS=temporal:7233
- TEMPORAL_CORS_ORIGINS=http://localhost:3000
image: temporalio/ui:latest
# networks:
# - temporal-network
ports:
- 8099:8080
volumes:
app_content: