Fixed docker-compose, example init.sql
This commit is contained in:
		| @@ -1,4 +1,3 @@ | |||||||
| version: '3.8' |  | ||||||
| services: | services: | ||||||
|   postgres: |   postgres: | ||||||
|     image: postgres |     image: postgres | ||||||
| @@ -10,13 +9,7 @@ services: | |||||||
|     ports: |     ports: | ||||||
|       - '5432:5432' |       - '5432:5432' | ||||||
|     volumes: |     volumes: | ||||||
|       - ./init.sql:/docker-entrypoint-initdb.d/init.sql |  | ||||||
|       - /home/WordAXDB/data:/var/lib/postgresql/data |       - /home/WordAXDB/data:/var/lib/postgresql/data | ||||||
|  |  | ||||||
|   init-db: |  | ||||||
|     image: postgres |  | ||||||
|     depends_on: |  | ||||||
|       - postgres |  | ||||||
|     volumes: |  | ||||||
|       - ./init-scripts:/docker-entrypoint-initdb.d |       - ./init-scripts:/docker-entrypoint-initdb.d | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								WordAX/init-scripts/init.sql
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										2
									
								
								WordAX/init-scripts/init.sql
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -2,4 +2,4 @@ CREATE TABLE example_table ( | |||||||
|     id SERIAL PRIMARY KEY, |     id SERIAL PRIMARY KEY, | ||||||
|     name VARCHAR(255), |     name VARCHAR(255), | ||||||
|     description TEXT |     description TEXT | ||||||
| );; | ); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user