-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (33 loc) · 985 Bytes
/
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
# Base Docker Compose configuration.
# Not used by itself, but with the CI or DEV override files. Examples below...
#
# DEV Up (which builds the app container)
# $ docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
#
# CI Run Command in App Container (which uses a built container for the app tagged: ${GITHUB_REPOSITORY}/${GITHUB_HEAD_REF} )
# $ docker-compose -f docker-compose.yml -f ci/docker-compose.ci.yml run app <command>
version: '3'
services:
app:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/app
## ---- SETUP YOUR DEFAULT PORT -----
# ports:
# - '1337:1337'
## ---- UNCOMMENT BELOW FOR POSTGRESQL DATABASE AND REDIS (common for web apps) -----
# links:
# - database
# - sessions
# database:
# image: postgres:11
# ports:
# - '5432:5432'
# environment:
# - POSTGRES_HOST_AUTH_METHOD=trust
# sessions:
# image: redis:5
# ports:
# - '6379:6379'