mirror of
				https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
				synced 2025-11-04 11:07:58 +00:00 
			
		
		
		
	Updated docker configuration
This commit is contained in:
		
							
								
								
									
										2
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
				
			|||||||
 | 
					FROM php:7.2.2-apache
 | 
				
			||||||
 | 
					RUN docker-php-ext-install mysqli pdo pdo_mysql
 | 
				
			||||||
@@ -31,10 +31,10 @@ existing colors.
 | 
				
			|||||||
## start
 | 
					## start
 | 
				
			||||||
To run the program execute:
 | 
					To run the program execute:
 | 
				
			||||||
```bash
 | 
					```bash
 | 
				
			||||||
  docker-compose up -d
 | 
					  bash ./start.sh
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
## test
 | 
					## test
 | 
				
			||||||
To run the tests execute:
 | 
					To run the tests execute:
 | 
				
			||||||
```bash
 | 
					```bash
 | 
				
			||||||
  test.sh
 | 
					  bash ./test.sh
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,7 +11,7 @@ services:
 | 
				
			|||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
      - "9906:3306"
 | 
					      - "9906:3306"
 | 
				
			||||||
  web:
 | 
					  web:
 | 
				
			||||||
    image: php:7.2.2-apache
 | 
					    build: .
 | 
				
			||||||
    container_name: php_web
 | 
					    container_name: php_web
 | 
				
			||||||
    depends_on:
 | 
					    depends_on:
 | 
				
			||||||
      - db
 | 
					      - db
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user