-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.test.yml
executable file
·52 lines (50 loc) · 1.09 KB
/
docker-compose.test.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.9"
services:
node:
restart: unless-stopped
container_name: api
build:
dockerfile: Dockerfile.test.node
depends_on:
- db
- cache
db:
image: postgres:13-alpine
restart: unless-stopped
container_name: postgres
environment:
POSTGRES_USER: $TEST_POSTGRES_USER
POSTGRES_PASSWORD: $TEST_POSTGRES_PASSWORD
POSTGRES_DB: $TEST_POSTGRES_DB
volumes:
- type: volume
source: postgres_data
target: /var/lib/postgresql/data
expose:
- "5432"
cache:
image: redis:6.2.6-alpine
restart: unless-stopped
container_name: cache
command: redis-server --appendonly yes
volumes:
- type: volume
source: redis_data
target: /data
expose:
- "6379"
webserver:
image: nginx:1.22.0-alpine
restart: unless-stopped
container_name: webserver
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/ssl-test/nginx.conf:/etc/nginx/conf.d/default.conf
- ./certs:/etc/certs
depends_on:
- node
volumes:
postgres_data:
redis_data: