Skip to content

Commit 3b830f0

Browse files
committed
Database support
1 parent 03bc77d commit 3b830f0

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ composer.phar
44
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
55
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
66
# composer.lock
7+
.env

docker-compose.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,27 @@
11
version: '3'
22
services:
3-
ads_warehouse:
4-
container_name: ads_warehouse
3+
postgres:
4+
container_name: ads_warehouse_postgres
5+
image: postgres:alpine
6+
env_file: ./.env
7+
ports:
8+
- "${DOCKER_POSTGRES_PORT}:5432"
9+
10+
flyway:
11+
container_name: ads_warehouse_flyway
12+
image: flyway/flyway:latest-alpine
13+
command: migrate
14+
env_file: ./.env
15+
volumes:
16+
- ./src:/flyway/sql
17+
depends_on:
18+
- postgres
19+
20+
server:
21+
container_name: ads_warehouse_server
522
image: leocavalcante/dwoole:dev
623
ports:
7-
- 8000:8000
24+
- "${DOCKER_HTTP_PORT}:8000"
825
volumes:
926
- ./:/app
1027
environment:

0 commit comments

Comments
 (0)