-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 839 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (32 loc) · 839 Bytes
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
services:
serverws:
image: serverws
container_name: server_ws
restart: always
networks:
- network_ws
volumes:
- //c/Docker/volume/serverws_app:/usr/src/app
- //c/Docker/volume/serverws_data:/usr/src/app/data
ports:
- "9000:9000"
- "9001:9001"
- "9002:9002"
entrypoint: ["/bin/sh", "-c", "cp /usr/src/app/*.sh /home/scripts/ && chmod +x /home/scripts/*.sh && /home/scripts/start.sh"]
redis:
image: redis
container_name: server_redis
restart: always
networks:
- network_ws
volumes:
- //c/Docker/volume/serverredis_app:/usr/src/app
- //c/Docker/volume/serverredis_data:/usr/src/app/data
working_dir: /usr/src/app
ports:
- "6379:6379"
networks:
network_ws:
name: network_ws
driver: bridge
external: false