-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
54 lines (50 loc) · 1.13 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
version: "3"
services:
mysql:
image: mysql:8.0.30
restart: always
environment:
MYSQL_ROOT_PASSWORD: "root_password"
MYSQL_DATABASE: "outbox_messages"
MYSQL_USER: "username"
MYSQL_PASSWORD: "password"
MYSQL_ROOT_HOST: "0.0.0.0"
ports:
- "3306:3306"
postgres:
image: postgres:14-alpine3.16
restart: always
environment:
POSTGRES_DB: "outbox_messages"
POSTGRES_USER: "username"
POSTGRES_PASSWORD: "password"
ports:
- "5432:5432"
php80: &base
build:
context: .
args:
PHP_VERSION: 8.0
environment:
EVENTSAUCE_TESTING_MYSQL_HOST: 'mysql'
EVENTSAUCE_TESTING_PGSQL_HOST: 'postgres'
profiles:
- testing
working_dir: /app
volumes:
- ./:/app
php81:
<<: *base
build:
args:
PHP_VERSION: 8.1
php82:
<<: *base
build:
args:
PHP_VERSION: 8.2
php83:
<<: *base
build:
args:
PHP_VERSION: 8.3