Changing to Ubuntu and docker-compose v2. Closes #185

selenium-screenshot-testing
Kevin Chung 2017-01-06 17:04:57 -05:00
parent 6eee636893
commit 09398b2ab0
2 changed files with 27 additions and 29 deletions

View File

@ -1,8 +1,11 @@
FROM alpine:3.2
RUN apk update && apk upgrade
RUN apk add git gcc musl-dev libffi-dev python python-dev py-pip
FROM ubuntu:latest
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install build-essential python-dev python-pip libffi-dev -y
RUN mkdir /opt
VOLUME ["/opt/CTFd"]
RUN mkdir -p /opt/CTFd
COPY . /opt/CTFd
WORKDIR /opt/CTFd

View File

@ -1,26 +1,21 @@
ctfd:
build: .
restart: always
ports:
- "8000:8000"
environment:
- DATABASE_URL=mysql+pymysql://root@db/ctfd
volumes_from:
- data:rw
links:
- db:db
version: '2'
db:
image: mysql
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
volumes_from:
- data:rw
services:
ctfd:
build: .
restart: always
ports:
- "8000:8000"
environment:
- DATABASE_URL=mysql+pymysql://root@db/ctfd
volumes:
- .data/CTFd/logs:/opt/CTFd/CTFd/logs
links:
- db:db
data:
image: mysql
restart: always
volumes:
- /var/lib/mysql
- /opt/CTFd/CTFd/logs
command: "tail -f /dev/null"
db:
image: mysql
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
volumes:
- .data/mysql:/var/lib/mysql