-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
executable file
·59 lines (53 loc) · 1.04 KB
/
docker-compose.yaml
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
51
52
53
54
55
56
57
58
59
# Docker Compose Version - unrelated to project
version: "3"
#? Define your services here
services:
#? The reverse proxy
proxy:
image: stories-nginx-dev
build:
context: ./nginx
dockerfile: nginx.Dockerfile
ports:
- "80:80"
networks:
- subnet
depends_on:
- frontend
#? Stories Application
frontend:
image: stories-frontend-dev
build:
context: .
dockerfile: Dockerfile
restart: always
environment:
ENV: develop
depends_on:
- db
networks:
- subnet
volumes:
- ./app:/usr/src/stories/app
- ./logs:/usr/src/stories/logs
- ./migrations:/usr/src/stories/migrations
#? PostgreSQL database
db:
image: postgres:10.4
restart: always
environment:
POSTGRES_USER: deploy
POSTGRES_PASSWORD: docker
POSTGRES_DB: stories
ports:
- "5442:5432"
networks:
- subnet
volumes:
- db_data:/var/lib/postgresql/data
#? Your Networks
networks:
subnet:
#? Your Volumes
volumes:
db_data: