-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (32 loc) · 877 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
33 lines (32 loc) · 877 Bytes
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
version: '3'
services:
database:
image: postgres:9.6.1
restart: always
env_file:
- dev.env # add this file at the top level of the file
volumes:
- database:/var/lib/postgresql/data
app:
image: registry.gitlab.propulsion-home.ch/full-stack/batch-2018-03/group-projects/phoenix:master
# image comes from gitlab/registry
restart: always
env_file:
- dev.env
ports:
- '8070:8000'
- '4321:22'
command: "/usr/sbin/sshd -D"
# volumes is used so that when we move files in our project the changes get transferred over to the container
depends_on:
- database
links:
- database
volumes:
- ./app:/app
- ./media-files:/media-files
- ./static-files:/static-files
- ./scripts:/scripts
# this tells docker that there is a volume called database
volumes:
database: