Maintenance: GitLab software upgrade on Friday Jan 21 at 9 p.m. Service may not be available between 9 p.m. and 9:30 p.m.

Commit a5a13aec authored by Aaron Yildiztas's avatar Aaron Yildiztas
Browse files

changed ansible-galaxy to docker_compose

parent 8aa6e0b2
# syntax=docker/dockerfile:1
FROM python:3
ENV PYTHONUNBUFFERED=1
WORKDIR /code
COPY requirements.txt /code/
RUN pip install -r requirements.txt
COPY . /code/
\ No newline at end of file
version: "3.9"
services:
db:
image: postgres
volumes:
- ./data/db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- "8000:8000"
depends_on:
- db
\ No newline at end of file
Django>=3.0,<4.0
psycopg2-binary>=2.8
\ No newline at end of file
collections:
- name: community.docker
# Examples use the django example at https://docs.docker.com/compose/django. Follow it to create the
# flask directory
- name: Run using a project directory
hosts: localhost
gather_facts: no
tasks:
- name: Tear down existing services
community.docker.docker_compose:
project_src: flask
state: absent
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment