Support old compose file layout for legacy docker support on circleci
This commit is contained in:
Родитель
9a1f73f4c9
Коммит
32ce42163e
|
@ -9,6 +9,7 @@ dependencies:
|
|||
- sudo /etc/init.d/postgresql stop
|
||||
- sudo apt-get remove -y postgresql-9.5
|
||||
- sudo apt-get remove -y postgresql-9.6
|
||||
- mv docker-compose.yml.circleci docker-compose.yml
|
||||
|
||||
cache_directories:
|
||||
- "~/docker"
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
app:
|
||||
image: app:build
|
||||
env_file: .env
|
||||
stdin_open: true
|
||||
tty: true
|
||||
expose:
|
||||
- "7001"
|
||||
links:
|
||||
- db
|
||||
volumes:
|
||||
- ./app:/app
|
||||
command: ["/app/bin/wait-for-it.sh", "db:5432", "--", "python", "/app/manage.py", "runserver", "0:7001"]
|
||||
|
||||
nginx:
|
||||
build: ./nginx
|
||||
links:
|
||||
- app
|
||||
ports:
|
||||
- "80:80"
|
||||
|
||||
db:
|
||||
restart: always
|
||||
image: postgres:9.6
|
||||
volumes_from:
|
||||
- data
|
||||
ports:
|
||||
- "5432:5432"
|
||||
|
||||
data:
|
||||
image: busybox
|
||||
volumes:
|
||||
- /var/lib/postgresql
|
||||
command: "true"
|
Загрузка…
Ссылка в новой задаче