-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·59 lines (53 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
executable file
·59 lines (53 loc) · 1.12 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
version: "2"
services:
client:
container_name: shopping-app-client
build:
context: ./client/
ports:
- 3000:3000
volumes:
- ./client/src:/usr/src/client/src
- ./client/public:/usr/src/client/public
server:
container_name: shopping-app-server
build:
context: ./server/
env_file:
- ./server/.env
volumes:
- ./server/:/usr/src/server
depends_on:
- db
ports:
- 5500:5500
dbdata:
container_name: shopping-app-dbdata
image: busybox
volumes:
- /var/lib/postgresql/data
db:
container_name: shopping-app-db
image: postgres:9.4
ports:
- 5432:5432
volumes_from:
- dbdata
testserver:
container_name: shopping-app-testserver
env_file: ./server/.env
image: python:3.7
working_dir: /usr/src/server
volumes:
- ./server/:/mnt
depends_on:
- testdb
ports:
- 5053:5053
environment:
APPLICATION_PORT: 5053
APPLICATION_DB_CONTAINER: testdb
command: python -m pytest test/
testdb:
container_name: shopping-app-testdb
image: postgres:9.4