-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (42 loc) · 1.02 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
version: '3.4'
services:
apiserver:
build:
context: .
dockerfile: ./Dockerfile
restart: always
ports:
- 80:5000
environment:
ENV: production
PORT: 5000
DATABASE_URI: mysql+mysqldb://appuser${MYSQL_PASSWORD}@mysql:3306/appdb?charset=utf8mb4
ADMIN_KEY: ${MYSQL_PASSWORD}
BCRYPT_SALT: 10
STRIPE_PUBLIC_KEY: ${STRIPE_PUBLIC_KEY}
STRIPE_SECRET_KEY: ${STRIPE_SECRET_KEY}
STRIPE_WEBHOOK_SECRET: ${STRIPE_WEBHOOK_SECRET}
mysql:
image: mysql
restart: always
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: appdb
MYSQL_USER: appuser
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- db_storage:/var/lib/mysql
ports:
- 3306:3306
phpmyadmin:
image: phpmyadmin
restart: always
environment:
PMA_HOST: mysql
PMA_USER: appuser
PMA_DATABASE: appdb
ports:
- 8080:80
volumes:
db_storage: