generated from CISC-CMPE-327/CI-Python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
43 lines (40 loc) · 969 Bytes
/
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
version: "2"
services:
seetgeek-web:
image: chadcipython/chad-ci-python:v1
depends_on:
- seetgeek-db
links:
- seetgeek-db
ports:
- "8081:8081"
environment:
- db_string=mysql+pymysql://root:root@seetgeek-db/qa327
command: ["./wait-for-it.sh", "seetgeek-db:3306", "--strict" , "--timeout=300", "--", "python", "-m", "qa327"]
networks:
- seetgeek-site
seetgeek-db:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root
command: --init-file /data/application/init.sql
volumes:
- ./mysql_data:/var/lib/mysql
- ./db_init.sql:/data/application/init.sql
networks:
- seetgeek-site
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: pma
depends_on:
- seetgeek-db
environment:
PMA_HOST: seetgeek-db
PMA_ARBITRARY: 1
restart: always
ports:
- 8082:80
networks:
- seetgeek-site
networks:
seetgeek-site: