-
Notifications
You must be signed in to change notification settings - Fork 37
/
docker-compose.yml
50 lines (47 loc) · 1.18 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: "3.0"
services:
application:
build: .
volumes:
- ./tock:/tock
links:
- db
working_dir: /tock
entrypoint: python /tock/docker_entrypoint.py
environment:
- PYTHONUNBUFFERED=yup
- DATABASE_URL=postgres://tock_user:tock_password@db/tock
- RUNNING_IN_DOCKER=yup
- DJANGO_SETTINGS_MODULE=tock.settings.dev
# - NEW_RELIC_LICENSE_KEY=get-from-vcap-user-provided-service (not to be used for local development)
stdin_open: true
tty: true
ports:
- "8000:8000"
command: "python manage.py runserver 0.0.0.0:8000"
db:
image: postgres:12.8
environment:
- POSTGRES_DB=tock
- POSTGRES_USER=tock_user
- POSTGRES_PASSWORD=tock_password
gulp:
image: node:23.0.0
volumes:
- .:/tock
- /tock/node_modules
working_dir: /tock
entrypoint: npm run start-gulp
integration-tests:
build:
context: .
dockerfile: Dockerfile-tests
links:
- application
volumes:
- .:/home/circleci/project
- /home/circleci/project/node_modules
environment:
IS_DOCKER: "true"
TOCK_URL: "http://application:8000"
command: /bin/true