forked from levizoesch/teller-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
91 lines (86 loc) · 1.99 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
version: "3.9"
volumes:
db-store:
psysh-store:
db_data:
networks:
laravel:
driver: bridge
services:
app:
container_name: TellerSDKAPP
build:
context: .
dockerfile: ./docker/php/Dockerfile
target: ${APP_BUILD_TARGET:-base}
volumes:
- type: bind
source: .
target: /workspace
- type: volume
source: psysh-store
target: /root/.config/psysh
volume:
nocopy: true
environment:
- APP_DEBUG=${APP_DEBUG:-true}
- APP_ENV=${APP_ENV:-local}
- APP_URL=${APP_URL:-http://localhost}
- DB_CONNECTION=${DB_CONNECTION:-mysql}
- DB_HOST=${DB_HOST:-TellerSDKDataBase}
- DB_PORT=${DB_PORT:-3306}
- DB_DATABASE=${DB_DATABASE:-tellersdk}
- DB_USERNAME=${DB_USERNAME:-username}
- DB_PASSWORD=${DB_PASSWORD:-password}
- TELLER_TEST_TOKEN=${TELLER_TEST_TOKEN:-test_token_example}
web:
container_name: TellerSDKWEB
build:
context: .
dockerfile: ./docker/nginx/Dockerfile
ports:
- target: 80
published: 80
protocol: tcp
mode: host
volumes:
- type: bind
source: .
target: /workspace
depends_on:
- db
- phpmyadmin
db:
image: mysql:latest
container_name: TellerSDKDataBase
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: tellersdk
MYSQL_USER: username
MYSQL_PASSWORD: password
ports:
- "3306:3306"
volumes:
- db_data:/var/lib/mysql
phpmyadmin:
container_name: TellerSDKPHPMyAdmin
image: phpmyadmin/phpmyadmin
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: tellersdk
MYSQL_USER: username
MYSQL_PASSWORD: password
ports:
- "8080:80"
depends_on:
- db
mailhog:
container_name: TellerSDKMailServer
image: mailhog/mailhog
ports:
- target: 8025
published: 8025
protocol: tcp
mode: host