dev #5
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -1,13 +1,11 @@
|
|||||||
name: CI-pipeline
|
name: CI-pipeline
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- dev
|
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linters:
|
linters:
|
||||||
|
|||||||
12
compose.yaml
12
compose.yaml
@@ -1,9 +1,9 @@
|
|||||||
services:
|
services:
|
||||||
app:
|
django-app:
|
||||||
build: .
|
image: wtukatyr/django-example-app:latest
|
||||||
container_name: django-app
|
container_name: django-app
|
||||||
ports:
|
ports:
|
||||||
- "80:8000"
|
- "8989:8000"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
environment:
|
environment:
|
||||||
@@ -14,6 +14,8 @@ services:
|
|||||||
DATABASE_PORT: ${DATABASE_PORT}
|
DATABASE_PORT: ${DATABASE_PORT}
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
networks:
|
||||||
|
- proxy-common
|
||||||
db:
|
db:
|
||||||
image: postgres:14
|
image: postgres:14
|
||||||
restart: always
|
restart: always
|
||||||
@@ -35,3 +37,7 @@ services:
|
|||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
pg-data:
|
pg-data:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy_common:
|
||||||
|
external: true
|
||||||
|
|||||||
Reference in New Issue
Block a user