-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
52 lines (49 loc) · 1.13 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
51
52
version: '3'
services:
simple-web-event-tracking:
image: simple-web-event-tracking
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
links:
- postgres
depends_on:
- postgres
ports:
- 3000:3000
volumes:
- .:/app
environment:
# Hostname and port where the app runs
- HOST=0.0.0.0
- PORT=3000
# Username and password for protected pages
- USERNAME=test
- PASSWORD=test123abc
# Database settings
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=testpassword
- DB_NAME=simple-web-event-tracking
postgres:
image: postgres:9.6.24-alpine3.15
restart: unless-stopped
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: testpassword
POSTGRES_DB: simple-web-event-tracking
nginx:
image: nginx:1.21.5-alpine
restart: unless-stopped
ports:
- 3001:80
volumes:
- ./static:/usr/share/nginx/html
volumes:
mariadb-data:
postgres-data: