-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (72 loc) · 1.44 KB
/
docker-compose.yml
File metadata and controls
72 lines (72 loc) · 1.44 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.5"
services:
proxy:
image: nginx:latest
container_name: proxy-nginx
links:
- backend
- martin
ports:
- "8080:80"
- "443:443"
depends_on:
- backend
volumes:
- ./nginx/default.conf/default.conf:/etc/nginx/conf.d/default.conf
- ./nginx/h5bp:/etc/nginx/h5bp/
- frontend:/app
networks:
- unc
restart: unless-stopped
postgres:
container_name: postgres_container
image: mdillon/postgis
hostname: postgres
environment:
POSTGRES_USER: ${PGUSER}
POSTGRES_PASSWORD: ${PGPASSWORD}
POSTGRES_DB: ${PGDATABASE}
PGDATA: /data/postgres
volumes:
- unc-data-v1:/data/postgres
ports:
- "5432:5432"
networks:
- unc
restart: unless-stopped
martin:
image: urbica/martin
container_name: martin
hostname: martin
depends_on:
- postgres
ports:
- "3000:3000"
restart: unless-stopped
environment:
WATCH_MODE: "true"
DATABASE_URL: "postgres://${PGUSER}:${PGPASSWORD}@${PGHOST}/${PGDATABASE}"
networks:
- unc
backend:
build:
context: ./
container_name: backend
hostname: backend
depends_on:
- postgres
# volumes:
# - frontend:/app
ports:
- 8000:8000
networks:
- unc
env_file: .env
restart: unless-stopped
volumes:
unc-data-v1:
node_modules:
frontend:
networks:
unc:
driver: bridge